Who read this email: Hello, I am a student from the University of Chile, i am in a proyect from my department of Electric Engineer that have relation with the learning of "SCTP protocol". I have been trying to work with yours APIs, sctplib and socketapi, for these reason i installed the kernel that supports SCTP; i got it from www.openss7.org and then i installed yours APIs(sctplib-1.0.1 and socketapi-1.3.1), i have no problems with that. I made this easy example: --------------------------------------------------------------------------- #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdlib.h> #include <unistd.h> #include <sys/uio.h> #include <ext_socket.h> #include <string.h> #include <errno.h> extern int errno; int main() { int sd; if ((sd = ext_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) == -1) { printf("%s",strerror(errno)); exit(1); }
ext_close(sd); } ----------------------------------------------------------------------------- i compile it with the following command: gcc -o test t1.c -lsctpsocket -lstdc++ -lsctp -lglib and it compiles! , but when i try to run it, it throws me this: ------------------------------------------------------------------------------ ./test: error while loading shared libraries: libsctpsocket-130.so.1: cannot open shared object file: No such file or directory ------------------------------------------------------------------------------ i looked for that archive, and i found it in /usr/local/lib ,but i don't know how to follow, Please can someone help me with this problem, i will be very grateful. Sorry, if the question is novice. Thanks in advance
Waldo Masuero wmasuero AT entelchile.net Universidad de Chile Dpto. de Ingenieria Electrica |
Archive powered by MHonArc 2.6.19+.