Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:32

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: compiling sudppipe on Linux
PostPosted: 15 Apr 2008 21:46 

Joined: 08 Mar 2008 19:44
Posts: 3
What is the syntax for compiling sudppipe on linux?

gcc -o sudppipe sudppipe.c
/tmp/ccnWRZTq.o: In function `loaddll':
sudppipe.c:(.text+0x123a): undefined reference to `dlopen'
sudppipe.c:(.text+0x124d): undefined reference to `dlerror'
sudppipe.c:(.text+0x1288): undefined reference to `dlsym'
sudppipe.c:(.text+0x1292): undefined reference to `dlerror'
sudppipe.c:(.text+0x12e2): undefined reference to `dlsym'
sudppipe.c:(.text+0x12ec): undefined reference to `dlerror'
sudppipe.c:(.text+0x133c): undefined reference to `dlsym'
sudppipe.c:(.text+0x1346): undefined reference to `dlerror'
sudppipe.c:(.text+0x139f): undefined reference to `dlclose'
collect2: ld returned 1 exit status


Top
 Profile  
 
 
 Post subject:
PostPosted: 15 Apr 2008 22:08 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
add -ldl to the compiler


Top
 Profile  
 
 Post subject:
PostPosted: 06 May 2008 19:15 

Joined: 06 May 2008 19:11
Posts: 3
...and whats the trick to compile the plugins? :/
Code:
kellerkind@ubuntu:~/aluigi$ gcc -o ./plugins/example_sudp.so ./plugins/example_sudp.c -ldl
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld gab 1 als Ende-Status zur+ck   


Code:
kellerkind@ubuntu:~/aluigi$ gcc -v
Es werden eingebaute Spezifikationen verwendet.
Ziel: i486-linux-gnu
Konfiguriert mit: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread-Modell: posix
gcc-Version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)   


Top
 Profile  
 
 Post subject:
PostPosted: 06 May 2008 19:38 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
gcc -shared -fPIC -o FILE.SO FILE.C


Top
 Profile  
 
 Post subject:
PostPosted: 06 May 2008 20:42 

Joined: 06 May 2008 19:11
Posts: 3
Thank You.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron