SCTP Discussions

Text archives Help


[SCTP-Discussion] undefined reference to sctp_whatever...


Chronological Thread 
  • From: Coene Lode <Lode.Coene AT siemens.atea.be>
  • To: "'discussion AT sctp.de'" <discussion AT sctp.de>
  • Subject: [SCTP-Discussion] undefined reference to sctp_whatever...
  • Date: Thu Mar 15 11:01:02 2001
  • List-id: SCTP Discussions <discussion.sctp.de>

Folks,

I've installed the library version of SCTP(hoepfully correct?)
I've managed to include the SCTP.H file with my source code and compile
without errors.
But now the linker complains:
cd /home/p82609/siemens/sua/
make -k
g++ -o sua sua_main.o sua_database.o sua_file.o sua_distribution.o
sua_tcb.o sua_logging.o sua_test_user.o sua_syntax.o sua_cl.o sua_co.o
/home/p82609/sctplib-1.0.0-pre6/sctplib/sctp/libsctp.a
sua_database.o: In function
`Sua_List::register_instance(SCTP_ulp_Callbacks)':
sua_database.o(.text+0xa80): undefined reference to
`sctp_registerInstance(unsigned short, unsigned short, unsigned short,
unsigned int, unsigned char (*)[45], SCTP_ulp_Callbacks)'
collect2: ld returned 1 exit status
make: *** [sua] Error 1

Compilation exited abnormally with code 2 at Thu Mar 15 10:25:30

I've tried to tell the linker where the lib is located, but to no avail. The
demo applications do compile and link, so it is probably a Makefile
problem(I think).

I include the makefile ,(for what it is worth).
CC = g++
sua_OBJECTS = sua_main.o sua_database.o sua_file.o sua_distribution.o
sua_tcb.o sua_logging.o sua_test_user.o sua_syntax.o sua_cl.o sua_co.o
SCTPLIB = /home/p82609/sctplib-1.0.0-pre6/sctplib/sctp/sctp.h
SCTPOBJ = /home/p82609/sctplib-1.0.0-pre6/sctplib/sctp/libsctp.a
#INCLUDES = -I/home/p82609/sctplib-1.0.0-pre6/sctplib/sctp

sua:$(INCLUDES) $(sua_OBJECTS) $(SCTPOBJ)
$(CC) $(INCLUDES) -o sua $(sua_OBJECTS) $(SCTPOBJ)

sua_main.o: sua_main.c sua_database.h sua_global.h sua_logging.h
$(CC) -c sua_main.c

sua_database.o: sua_database.c sua_database.h sua_global.h sua_logging.h
$(SCTPLIB)
$(CC) -c sua_database.c

sua_file.o: sua_file.c sua_database.h sua_global.h
$(CC) -c sua_file.c

sua_distribution.o: sua_distribution.c sua_database.h sua_distribution.h
sua_global.h sua_syntax.h sua_cl.h
$(CC) -c sua_distribution.c

sua_tcb.o: sua_tcb.c sua_tcb.h sua_global.h
$(CC) -c sua_tcb.c

sua_test_user.o: sua_test_user.c
$(CC) -c sua_test_user.c

sua_logging.o: sua_logging.c sua_logging.h
$(CC) -c sua_logging.c

sua_syntax.o: sua_syntax.c sua_syntax.h
$(CC) -c sua_syntax.c

sua_cl.o: sua_cl.c sua_cl.h sua_global.h
$(CC) -c sua_cl.c

sua_co.o: sua_co.c sua_co.h sua_global.h
$(CC) -c sua_co.c

.PHONY: clean
clean:
rm sua $(sua_OBJECTS)


Any help gladely appreciated.

yours sincerly,
Lode Coene


Siemens Atea ICN D CS D
Software Development
Atealaan 34
B-2200 Herentals Belgium
Tel +32-14-25-2081 / Fax +32-14-25-3212
E-mail:
lode.coene AT siemens.atea.be





Archive powered by MHonArc 2.6.19+.

Top of page