www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/10/14:38:39

From: "Johan Venter" <jventer AT writeme DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <37FF42BB DOT 7AAADDDD AT hotmail DOT com>
Subject: Re: Win32 linking problem
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <Jk_L3.1825$_4.2912@newsfeeds.bigpond.com>
Date: Sun, 10 Oct 1999 13:00:30 +1000
NNTP-Posting-Host: 203.40.86.129
X-Trace: newsfeeds.bigpond.com 939553193 203.40.86.129 (Sun, 10 Oct 1999 20:59:53 EST)
NNTP-Posting-Date: Sun, 10 Oct 1999 20:59:53 EST
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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).

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019