This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
unresolved externals linking nlmconv.exe (binutils 2.9.1)
- To: cygwin at sourceware dot cygnus dot com
- Subject: unresolved externals linking nlmconv.exe (binutils 2.9.1)
- From: an dot rei at aon dot at
- Date: Tue, 10 Oct 2000 00:21:38 +0200
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