Hi all,
 
  I am working on a small network application on Linux(kernel version is 2.4.20-8), comprise of two parts: myUI and myAPI(which is .a lib).
  Now i need add SSL to the application. I have installed OpenSSL in /usr/local, and i can find head files in /usr/local/include/openssl and libssl.a, libcrypto.a in /usr/local/lib.
  In myAPI source codes, i will call OpenSSL functions. So, I link to libssl.a and libcrypto.a  when i make myAPI.a . That's no problem.
  But when i make myUI, that need link to myAPI.a which has linked to libssl.a and libcrypto.a, the result is many OpenSSL api can't not be found. For example:
......
  myAPI.a(.text+0xdc7): in function 'SendReq': undefined reference to 'SSL_write'
......
 
  I think libssl.a and libcrypto.a are static libs, so does myUI.a. Why the compiler can not find the openssl api?
 
  If anyone can give me a explaination in details? Thanks a lot.
 
Cruise Zou
Best Regard!
2006-11-13

Reply via email to