unresolved externals linking nlmconv.exe (binutils 2.9.1)
an.rei@aon.at
an.rei@aon.at
Mon Oct 9 15:11:00 GMT 2000
Dear Cygwinlist,
I am not sure if this is the right list for my problem.
I am trying to compile nlmconv.exe unter NT 4.0.
Compiling seems ok but linking give a lot of unresolved externals.
Here are some of them:
d:/usr/lib/libbfd.a(bfd.o)(.text+0x25a):bfd.c: undefined reference to
`xstrerror'
d:/usr/lib/libbfd.a(bfd.o)(.text+0x27d):bfd.c: undefined reference to
`dcgettext__'
d:/usr/lib/libbfd.a(bfd.o)(.text+0x4cf):bfd.c: undefined reference to
`_nl_msg_cat_cntr'
d:/usr/lib/libbfd.a(opncls.o)(.text+0x22):opncls.c: undefined
reference to `objalloc_create'
d:/usr/lib/libbfd.a(opncls.o)(.text+0x119):opncls.c: undefined
reference to `objalloc_free'
d:/usr/lib/libbfd.a(ihex.o)(.text+0xdae):ihex.c: undefined reference
to `_hex_value'
d:/usr/lib/libbfd.a(ihex.o)(.text+0xdcc):ihex.c: undefined reference
to `_nl_msg_cat_cntr'
Here is the makefile I am using:
#
# Makefile for a nlmconv program
#
TARGET = nlmconv
SOURCES = nlmconv.c nlmheader.c version.c filemode.c
bucomm.c
COBJECTS = $(SOURCES:.c=.o)
CFLAGS = -O2 -DNLMCONV_I386
# CFLAGS = -g
LDFLAGS += -Ld:/usr/lib
LDLIBS += -lopcodes -liberty -lbfd
# The name of your C compiler:
CC= gcc
# linker
LN= $(CC)
# file deletion command
# library (.a) file creation command
AR= ar rc
$(TARGET): $(COBJECTS)
$(LN) $(CFLAGS) $(LDFLAGS) \
$(COBJECTS) $(LDLIBS) -o $(TARGET)
$(COBJECTS):
clean:
del $(TARGET) $(COBJECTS)
rmo:
make clean
$(RM) $(TARGET) *.o
The three linked libs (-lopcodes -liberty -lbfd) are from 22.07.00.
Do I need extra libs to link with or newer versions?
Thanks for all tips.
Andreas
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list