Linker error when trying to link to libcrypto

I am trying to compile an older mac object C application on XCODE 4.2

I am getting an error when I try to compile

cannot link directly to /usr/lib/libssl.0.9.7.dylib for x86_64 architecture

any idea why this is so and how to fix it?

+3


source to share


1 answer


After porting, you will need to reference symlink libcrypto.dylib

instead of dylib with version ( libcrypto.0.9.7.dylib

), unless you need to maintain backward compatibility. Symlink will be allowed for the correct version of OS X 10.6+, but not until 10.5 or earlier.



If you need a program lib*.0.9*.dylib

in your program, you need to manually save these libraries and place them in your program. You can find information on this solution in this answer: fooobar.com/questions/465041 / ...

0


source







All Articles