Hi,

I wrote a C++ class using openssl, however I am getting a linking error message although I tried to solve it for hours. I have no problem with the C code, I can compile&link successfully. The followings are my command line and error message.
 

-------------------------------------------------------------------------------------------
% gcc -o MnSecure MnSecure.cxx -Iinclude -Ixlib -Lbin -lssl -Lbin -lcrypto -Lbin -ltb

ld32: ERROR 33: Unresolved text symbol "set_cert_stuff(ssl_ctx_st *, char *, char *)" -- 1st referenced by /var/tmp/cc8r0YDy.o.
 Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR 33: Unresolved text symbol "verify_callback(int, x509_store_state_st *)" -- 1st referenced by /var/tmp/cc8r0YDy.o.
 Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
collect2: ld returned 2 exit status
------------------------------------------------------------------------------------------

set_cert_stuff(...) and verify_callback(...) functions are in s_cb.o and I included this object file in libtb.so which is one of the libraries I used for linking. As I said before I have no problem with any of these libraries and functions when I write in C, so I suspect I do something wrong or I should do something more for C++.

Can anyone tell me about this error?
Thanks...Tugrul
 


Reply via email to