delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/26/11:01:53

From: "David" <nobody AT bogus DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Trouble compiling Allegro under DJGPP
Lines: 76
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <Tddp5.5763$Mw.53280@news2.atl>
Date: Thu, 24 Aug 2000 13:47:50 -0400
NNTP-Posting-Host: 209.214.200.149
X-Trace: news2.atl 967139315 209.214.200.149 (Thu, 24 Aug 2000 13:48:35 EDT)
NNTP-Posting-Date: Thu, 24 Aug 2000 13:48:35 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm using

   djdev203.zip
   gcc2952b.zip
   grx23.zip
   grx23fnt.zip
   grx23.update.000520.gz

I can build the library without errors, but I get the following error when I
try to build the /test directory:

=== ERROR TEXT ===
C:\DJGPP\grx231\test>make -f makefile.dj2
gcc  -o arctest.exe arctest.o ../lib/dj2/libgrx20.a -lpc -lm
arctest.o(.text+0xcc):arctest.c: undefined reference to `GrLine'
arctest.o(.text+0xe5):arctest.c: undefined reference to `GrLine'
arctest.o(.text+0x14c):arctest.c: undefined reference to `GrLine'
arctest.o(.text+0x168):arctest.c: undefined reference to `GrLine'
arctest.o(.text+0x1c3):arctest.c: undefined reference to `GrLine'
arctest.o(.text+0x1dc):arctest.c: more undefined references to `GrLine'
follow
collect2: ld returned 1 exit status
make.exe: *** [arctest.exe] Error 1

C:\DJGPP\grx231\test>
=== ERROR TEXT ===

The output from an "nm" on "libgrx20.a" gives

=== NM OUTPUT ===
c:/djgpp/grx231/lib/dj2:nm --print-file-name libgrx20.a | grep ":line.o"
libgrx20.a:line.o:000000f0 b .bss
libgrx20.a:line.o:000000f0 d .data
libgrx20.a:line.o:00000000 t .text
libgrx20.a:line.o:         U _GrCustomLine
libgrx20.a:line.o:         U _GrHLine
libgrx20.a:line.o:         U _GrLine
libgrx20.a:line.o:         U _GrVLine
libgrx20.a:line.o:00000000 t ___gnu_compiled_c
libgrx20.a:line.o:         U ___gr_INIT
libgrx20.a:line.o:         U ___gr_Line
libgrx20.a:line.o:         U ___gr_Result
libgrx20.a:line.o:         U ___gr_WR
libgrx20.a:line.o:         U ___gr_X
libgrx20.a:line.o:         U ___gr_Y
libgrx20.a:line.o:         U ___gr_Y_page_offs
libgrx20.a:line.o:         U ___gr_color
libgrx20.a:line.o:00000000 T ___gr_line
libgrx20.a:line.o:         U ___gr_lstyle
libgrx20.a:line.o:         U ___gr_vpl
libgrx20.a:line.o:         U ___gr_vpt
libgrx20.a:line.o:00000000 t gcc2_compiled.
libgrx20.a:lineto.o:00000030 b .bss
libgrx20.a:lineto.o:00000030 d .data
libgrx20.a:lineto.o:00000000 t .text
libgrx20.a:lineto.o:00000000 t ___gnu_compiled_c
libgrx20.a:lineto.o:         U ___gr_X
libgrx20.a:lineto.o:         U ___gr_Y
libgrx20.a:lineto.o:         U ___gr_line
libgrx20.a:lineto.o:00000000 T ___gr_lineto
libgrx20.a:lineto.o:00000000 t gcc2_compiled.
c:/djgpp/grx231/lib/dj2:

=== NM OUTPUT ===

Notice the _GrLine is type "U", or undefined.  If I do an "nm" on the line.o
file, the symbol _GrLine is type "T", or code.  Something is getting lost in
the link, but I don't know why.

--

May God bless you,
David Cullen



- Raw text -


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