Date: Sun, 9 Jun 1996 16:06:09 +0200 (IST) From: Eli Zaretskii To: Mark Nowak Cc: djgpp AT delorie DOT com Subject: Re: GCC.EXE failing with weird compilation errors In-Reply-To: <9606071620.AA13845@ssd.comm.mot.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 7 Jun 1996, Mark Nowak wrote: > I'm having a hard time getting djdpp to work on my machine. > I FTP'd the .zip files, followed the directions, had to create my own > include and lib directories which surprised me, but when I run > gcc -Wall -o hello.exe hello.c -lm > the compilation fails and I get these messages: > > _main.c(.text+0x1a): undefined refernce to `djgpp_last_ctor` > _main.c(.text+0x1f): undefined refernce to `djgpp_first_ctor` Is this DJGPP v2 or v1? In v2, these functions are defined by the linker script djgpp.lnk which should be in your lib subdirectory. Is it there? If so, does it define these symbols? If this doesn't help, please add -v to the compilation command line and post everything gcc prints while compiling/linking.