gcc vs g++ for dlopen

Kolesar asim.husanovic@gmail.com
Wed Nov 26 21:11:00 GMT 2008


Exactly

g++ vs gcc is problem. I do not know, why!

In first case I use gcc for compile and g++ for linking, and load library
with ldopen is OK

but, in second case i use gcc for compile and for linking, and as resulet i
get Segmentation fault.

btw, i need only gcc, not g++

>What happens when you do:
>gcc test_library.c -o test_library -ldl 
Same :(

BR
Kolesar
-- 
View this message in context: http://www.nabble.com/gcc-vs-g%2B%2B-for-dlopen-tp20699786p20707261.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list