Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi everyone, I want to use the d

Status
Not open for further replies.

LF28

Programmer
Nov 22, 2002
52
DE
Hi everyone,

I want to use the dlsym (header: <dlfcn.h> ) function to get a symbol from a shared object. But I don't know which library defines the dlsym function. So when I compile my program:

gcc -g test.c

I get the error message
test.o: undefined reference to 'dlsym'

Can anyone help me?

Thanx, Tobi
 
ok, got it. It's the libdl.

Cheers,
Tobi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top