SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Re: SCTP compilation problem.


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Raja Muhammad Hammad <rajahammad AT gmail.com>
  • Cc: discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Re: SCTP compilation problem.
  • Date: Sat Mar 5 01:32:14 2005
  • List-id: SCTP Discussions <discussion.sctp.de>

Using sctplib 1.0.3 and socketapi 1.3.2 you can compile the
file test.c:
#include <ext_socket.h>
#include <stdio.h>
int main() {
printf("ext_socket returned %u.\n", ext_socket(AF_INET, SOCK_STREAM, 0));
return 0;
}
using:
[PowerBook17:~] tuexen% gcc -o test -Wall -ansi -L/usr/local/lib -lsctpsocket -lstdc++ -lsctplib -lglib test.c
You can run the executable:
[PowerBook17:~] tuexen% sudo ./test
ext_socket returned 1023.

Best regards
Michael

On Mar 4, 2005, at 22:55 Uhr, Raja Muhammad Hammad wrote:

hi
Is there no solution to this problem? Please share.

Regards
Hammad


On Thu, 3 Mar 2005 23:28:00 +0500, Raja Muhammad Hammad
<rajahammad AT gmail.com>
wrote:
The program just contain a signle line of code

main() {

ext_socket(AF_INET, SOCK_STREAM, 0);

}

I just wanted to test and know the compilation procedure. I browsed
the mailing list but couldnt find any answer. Please help me here as I
am really stucked.
Regards
Hammad


On Thu, 3 Mar 2005 23:26:00 +0500, Raja Muhammad Hammad
<rajahammad AT gmail.com>
wrote:
hi
I just installed SCTP lib and socketapi on my system running Fedora
core 2. I installed lib and api with its defaul options i.e.
1) configure
2) make
3) make install
I have root prvilidges on my machine. When I tried to run my sample
test program I got following error

[hammad@lab2pc65 test]$ gcc -lsctp -lglib test.c
/tmp/ccEJsyYk.o(.text+0x1a): In function `main':
: undefined reference to `ext_socket'
collect2: ld returned 1 exit status

_______________________________________________
discussion mailing list
discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/discussion






Archive powered by MHonArc 2.6.19+.

Top of page