Problem in Linking

Z

zehra.mb

Hello All,
I am writing one dll which gets statically linked to some lib say
library1.lib.
library1.lib exports some functions say function1. After building
library1.lib,I have linked
to it by going project->settings->linker->input. I have used some
functions from it in my
DLL.
Now when I build DLL, it gives me some linker errors like

ssleay32.lib(s2_srvr.obj) : error LNK2019: unresolved external symbol
__imp__SetLastError@4 referenced in function _ssl2_accept

ssleay32.lib(ssl_cert.obj) : error LNK2019: unresolved external symbol
__imp__GetLastError@0 referenced in function
_SSL_add_dir_cert_subjects_to_stack

ssleay32.lib(ssl_lib.obj) : error LNK2019: unresolved external symbol
_time referenced in
function _ssl_update_cache

like wise

Could someone shed some light on this problem ?
Thanks
 
M

mlimber

Hello All,
I am writing one dll which gets statically linked to some lib say
library1.lib.
library1.lib exports some functions say function1. After building
library1.lib,I have linked
to it by going project->settings->linker->input. I have used some
functions from it in my
DLL.
Now when I build DLL, it gives me some linker errors like

ssleay32.lib(s2_srvr.obj) : error LNK2019: unresolved external symbol
__imp__SetLastError@4 referenced in function _ssl2_accept

ssleay32.lib(ssl_cert.obj) : error LNK2019: unresolved external symbol
__imp__GetLastError@0 referenced in function
_SSL_add_dir_cert_subjects_to_stack

ssleay32.lib(ssl_lib.obj) : error LNK2019: unresolved external symbol
_time referenced in
function _ssl_update_cache

like wise

Could someone shed some light on this problem ?

Not here. Libs and DLLs are beyond the scope of the standard C++
language and thus this group (see
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9). Try in
a group dedicated to your development environment or platform (some are
listed in the aforementioned FAQ).

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top