This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
undefined reference to `__dlopen'
- From: Steve Kieu <haiquy at yahoo dot com>
- To: gcc <gcc-help at gcc dot gnu dot org>
- Date: Tue, 22 Nov 2005 15:02:23 +1100 (EST)
- Subject: undefined reference to `__dlopen'
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