undefined reference to `__dlopen'
Steve Kieu
haiquy@yahoo.com
Mon Nov 28 14:10:00 GMT 2005
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
More information about the Gcc-help
mailing list