- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: discussion AT sctp.de, Coene Lode <Lode.Coene AT siemens.atea.be>
- Subject: Re: [SCTP-Discussion] undefined reference to sctp_whatever...
- Date: Thu Mar 15 14:55:02 2001
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University of Essen, Germany
On Thursday, 15. March 2001 10:59, Coene Lode wrote:
>
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
Hello Lode,
you probably need to add the library libsctp.a file to the object
files.
Take something like
# gcc -I. -I../sctp -O3 -Wall -c echo_server.c
to create the object file, and
# gcc -O3 -Wall -o echo_server echo_server.o ../sctp/libsctp.a
to bind the object file and the (static) library together.
Regards,
--
Andreas Jungmaier
----------------------------------------------------------------------------
void hamlet()
{#define question=((bb)||(!bb))}
----------------------------------------------------------------------------
Andreas Jungmaier, Dipl.-Ing.
University of Essen email:
ajung AT exp-math.uni-essen.de
Computer Networking Technology Group Tel. : +49 (0201) 183-7636
----------------------------------------------------------------------------
PGP Public Key and Fingerprint: see
http://www.exp-math.uni-essen.de/~ajung
----------------------------------------------------------------------------
Archive powered by MHonArc 2.6.19+.