By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,116 Members | 1,319 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,116 IT Pros & Developers. It's quick & easy.

Problem in Linking

P: n/a
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

Sep 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ze******@gmail.com wrote:
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-lit....html#faq-5.9). Try in
a group dedicated to your development environment or platform (some are
listed in the aforementioned FAQ).

Cheers! --M

Sep 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.