Linking with OpenSSL
Linking with OpenSSL
- Subject: Linking with OpenSSL
- From: Alexander Hartner <email@hidden>
- Date: Fri, 20 Jun 2008 21:35:54 +0100
I am using gSoap to integrate with a webservice. To enable SSL support
I had to add this flag to the process -DWITH_OPENSSL
g++ -DWITH_OPENSSL myclient.cpp stdsoap.cpp soapC.cpp soapClient.cpp -
lxnet -lsocket -lnsl -lssl -lcrypto
as described here :
http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc18.20
I set both the "Other C Flags" and "Other C++ Flags" to -DWITH_OPENSSL
in XCode
However since I added this I now get errors linking.
Undefined symbols:
"_SSL_free", referenced from:
_tcp_disconnect in stdsoap2.o
_tcp_disconnect in stdsoap2.o
_tcp_disconnect in stdsoap2.o
"_X509_EXTENSION_get_object", referenced from:
_tcp_connect in stdsoap2.o
"_SSL_accept", referenced from:
_soap_ssl_accept in stdsoap2.o
"_SSL_get_error", referenced from:
_frecv in stdsoap2.o
_soap_ssl_error in stdsoap2.o
_fsend in stdsoap2.o
_tcp_connect in stdsoap2.o
_soap_ssl_accept in stdsoap2.o
"_SSL_get_peer_certificate", referenced from:
_tcp_connect in stdsoap2.o
_soap_ssl_accept in stdsoap2.o
...
It seems to me that the linker can't find the OpenSSL libraries. I
already added the Security Framework to my application, this did not
make any difference.
Any suggestion what I need to configure to get this to compile.
Thanks in advance
Alex
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden