Mail Archives: djgpp/1999/10/10/14:40:20
Johan Venter wrote:
> Alex Crowther <mr_spod AT hotmail DOT com> wrote in message
> news:37FF42BB DOT 7AAADDDD AT hotmail DOT com...
> > Probably been asked before ... many times :P but ...
> >
> > what command line options do I need to get gcc to compile and
> > link a Win32 program, currently I get the following errors,
> >
> > C:/bin/djgpp/lib/crt0.o(.data+0xc2(:crt0.s: undefined reference to
> > 'main'
> > /temp/ccaaaaaa1.o(.txt+0x13):engine.c: undefined reference to 'GetDC'
> > as well as similar lines for all the other windows calls like
> > DeleteObject, EndPaint, TextOutA etc etc
> >
> > For that matter where can I get the documentation for the djgpp gcc/make
> > and
> > for compiling win32 stuff under it (if any exists for the latter).
>
Ta ... I had a big feeling I was missing something very important :P
Alex
>
> DJGPP on its own cannot produce Win32 executables. If you install RSXNTDJ,
> however, you will be able to. Please install RSXNTDJ 1.5 with the help of my
> RSXNTDJ HOWTO (http://surf.to/rsxntdj) to get it running properly.
>
> Once that is setup, compile Win32 programs with 'gccw32' as opposed to 'gcc'.
>
> --
> Johan Venter
> ICQ 3643877 - jventer AT writeme DOT com
> The TPU DJGPP Interest Group - http://surf.to/djgppig
> The RSXNTDJ 1.5 HOWTO - http://surf.to/rsxntdj
--
--------------------------------------
EMAIL=alex_crowther AT yahoo DOT com
--------------------------------------
- Raw text -