undefined reference to `__dlopen'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Not quite sure if I did smt wrong. I got a test prog
like:

#include <dlfcn.h>
int main() {
dlopen(0,0);
}

run gcc test.c -ldl
gives me error

/tmp/ccYA2OZ8.o: In function `main':
dl.cSad.text+0x2c): warning: Using 'dlopen' in
statically linked applications requires at runtime the
shared libraries from the glibc version used for
linking
/usr_opt/usr/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../libdl.a(dlopen.o):
In function `dlopen':
: undefined reference to `__dlopen'
collect2: ld returned 1 exit status

Is it a bug or i did smt wrong?

cheers

S.KIEU


		
____________________________________________________ 
Do you Yahoo!? 
Take your Mail with you - get Yahoo! Mail on your mobile 
http://au.mobile.yahoo.com/mweb/index.html

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux