Flapz
Flapz

Reputation: 11

What library is needed for mach-o/nlist.h (Mac OS X)

I seem to have trouble finding the correct library to #include in my source code. Searched all over the web and my manpages... No result :'(

Does anyone have a clue?

Upvotes: 1

Views: 858

Answers (2)

Simon Groenewolt
Simon Groenewolt

Reputation: 10665

No idea if this helps but on my computer nlist.h is in the iPhone SDK.

/Developer/Platforms/iPhoneOS.platform/Developer/usr/include/mach-o

Upvotes: 0

kennytm
kennytm

Reputation: 523344

On 32-bit platforms, nlist(3) is in libSystem which is included by default.

On 64-bit platforms, nlist(3) does not exist.

Unless you're looking for non-external symbols, you should use dlsym(3).

Upvotes: 3

Related Questions