Xref: news2.mv.net comp.os.msdos.djgpp:5375 From: Brian Takle Newsgroups: comp.os.msdos.djgpp Subject: linker problems? Date: Tue, 25 Jun 1996 17:55:38 -0500 Lines: 35 Message-ID: <31D06E6A.EC@uwrf.edu> NNTP-Posting-Host: ruby-08.anetsrvcs.uwrf.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I'm stumped... d/l the files mentioned in the faq, set it all up, got the environment set correctly, and tried to compile one of the test programs. When it gets to the linker stage, it barfs out all kinds of unresolved externals. So I looked up what it didn't like (I mean, hey, it's a test program with the distribution so this is unexpected)... 'djgpp_last_ctor' (and first_ctor and first_dtor and last_dtor)... these are in libc.a right? Well I thought libc.a was always checked. Been fooling with it for days and can't figure it out. (Though I'm no genius with this kinda stuff.) Here's some info: /* djgpp environment setting */ DJGPP=c:/usr/djgpp.env /* DPMI reported by go32-v2 */ go32/v2 version 2.0 built Jan 23 1996 22:03:02 DPMI memory available: 4236 Kb DPMI swap space available: 3508 Kb /* output of gcc -v */ gcc version 2.7.2 ld -o dxetest /usr/lib/crt0.o -L/usr/lib dxetest.o -lgcc -lc -lgcc _main.c(.text+0x1a): undefined reference to `djgpp_last_ctor' _main.c(.text+0x1f): undefined reference to `djgpp_first_ctor' _main.c(.text+0x2f): undefined reference to `djgpp_first_ctor' exit.c(.text+0x29): undefined reference to `djgpp_last_dtor' exit.c(.text+0x2e): undefined reference to `djgpp_first_dtor' exit.c(.text+0x3f): undefined reference to `djgpp_first_dtor' This is from 'make' on /tests/dxe/dxetest.c or something, but it's not unique to that program...these unresolved's show up on every compile I've tried. -- -- Brian Takle brian DOT j DOT takle AT uwrf DOT edu