cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Hi i need help on using dlfcn
Hi i need help on using dlfcn
Feb 25, 2013 at 1:23pm UTC
abeljay10
(2)
im trying to implement dynamic loading of libraries into my skills.
but im having a problem whenever i compile a simple program that has dlopen("",RTLD_LAZY); in it it says undefined reference to dlopen
i even narrowed it to this
1
2
3
4
5
6
#include <dlfcn.h>
int
main(
int
arg,
char
** args){ dlopen(
""
,RTLD_LAZY);
return
0; }
just to try if something in my code is wrong.
im just compiling it im not running it
by the way im using fedora x86_64 platform and my g++ compiler came from the default repositories
please help
Feb 25, 2013 at 1:58pm UTC
abeljay10
(2)
i found the solution using -ldl option in g++ but i want to know why netbeans doesnt perform -ldl option
Topic archived. No new replies allowed.