From: Alex Crowther Newsgroups: comp.os.msdos.djgpp Subject: Re: Win32 linking problem Date: Sun, 10 Oct 1999 15:06:41 +0100 Organization: not very ... Lines: 45 Message-ID: <38009D70.5876BA54@hotmail.com> References: <37FF42BB DOT 7AAADDDD AT hotmail DOT com> NNTP-Posting-Host: 194.152.95.220 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsreader2.core.theplanet.net 939564143 17395 194.152.95.220 (10 Oct 1999 14:02:23 GMT) NNTP-Posting-Date: 10 Oct 1999 14:02:23 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Johan Venter wrote: > Alex Crowther 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 --------------------------------------