PDA

View Full Version : Linking 3rd party libs on Mac OS X



jonks
21st June 2010, 06:16
Hi,

I'm new to developing on Mac OS.
I'm wanting to use a few OpenSLL functions in my app.

I've put the following in the .pro file


LIBS += -L/usr/lib
LIBS += -llibssl


However, when linking I get this error:


ld: library not found for -llibssl

I appears that I have no idea how to link to libssl.dylib
Any idea what I'm doing wrong?

Thanks!

agathiyaa
21st June 2010, 06:19
hi,

-lssl should work ? ( Not -llibssl)

jonks
21st June 2010, 07:03
Yes you're right.

Now I'm getting different errors, such as


Undefined symbols _EVP_cleanup

I've already #included <openssl/evp.h> into the cpp files that call these functions.
(the app also compiles and links on Windows)

Any ideas?