This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]