bug-rcs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compilation on Win2000


From: Bill Adair
Subject: Compilation on Win2000
Date: Wed, 23 Oct 2002 17:08:31 +0100

Hello All,
I'm trying to compile gnu-rcs 5.7 from
http://www.cs.purdue.edu/homes/trinkle/RCS/.
The library items are all compiled happily but the last link step is giving
a load of undefined references :-

$ make -fpc/Makefile mingw32       
make all -f pc/Makefile MINGW32="" OS="nt" \
CC="gcc" CCFLAGS="-O -D__WIN32__ -D__32BIT__ -DRCSDLL" \
LDFLAGS="-s -o ./" O=".o" A=".a" AR="ar" \
DLDFLAGS="-ladvapi32 -s -o ./"
make[1]: Entering directory `/c/Bill/gnurcs57/rcs-5.7/src'
rm rcslib.a
dlltool -d pc/rcslib.def -D rcslib.dll -l rcslib.a
gcc ci.o libinit.o rcslib.a -s -o ./ci.exe
ci.o(.text+0x328):ci.c: undefined reference to `__imp_suffixes'
ci.o(.text+0x4e2):ci.c: undefined reference to `__imp_interactiveflag'
ci.o(.text+0x4e9):ci.c: undefined reference to `__imp_quietflag'
ci.o(.text+0x6ac):ci.c: undefined reference to `__imp_suffixes'
ci.o(.text+0x713):ci.c: undefined reference to `__imp_nerror'
ci.o(.text+0x7a4):ci.c: undefined reference to `__imp_Head'
ci.o(.text+0x7bc):ci.c: undefined reference to `__imp_workname'
ci.o(.text+0x7c3):ci.c: undefined reference to `__imp_RCSname'
ci.o(.text+0x7dc):ci.c: undefined reference to `__imp_Expand'

If I run nm on rcslib.a I seem to get the symbols shown to me :-

$ nm rcslib.a

dt.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$4
00000000 i .idata$5
00000000 i .idata$7
00000000 t .text
00000000 I __rcslib_a_iname

dh.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$2
00000000 i .idata$4
00000000 i .idata$5
00000000 t .text
00000000 I __head_rcslib_a
         U __rcslib_a_iname
00000004 i fthunk
00000004 i hname

ds00164.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$4
00000000 i .idata$5
00000000 i .idata$6
00000000 i .idata$7
00000000 t .text
         U __head_rcslib_a
00000000 I __imp__zone_set
00000000 T _zone_set
ds00004.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$4
00000000 i .idata$5
00000000 i .idata$6
00000000 i .idata$7
00000000 t .text
         U __head_rcslib_a
00000000 I __imp__Head
00000000 T _Head

ds00003.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$4
00000000 i .idata$5
00000000 i .idata$6
00000000 i .idata$7
00000000 t .text
         U __head_rcslib_a
00000000 I __imp__Expand
00000000 T _Expand

So can someone more gcc / nm aware explain why the compiler / linker is not
interested? There is presumably some makefile option. I need to be able to
compile the source as the IDE I'm using causes the code to keel over between
printing "new revision: 1.5; previous revision: 1.4" and the point where it
should print "done". The executables work on the command line.

Thanks
Bill




reply via email to

[Prev in Thread] Current Thread [Next in Thread]