473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem in Linking

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
1 1656
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: oguz mut | last post by:
hi, I have a linking problem while living in the following configuration: . windows 2000 . cygwin . g++ (GCC) 3.3.1 (cygming special) I work with the following 3 files (trivial.hpp,...
7
by: Ittay Dror | last post by:
Hi I have this peculiar situation. I have a library of utility classes, which I use to compile a binary. I want to reimplement a method in class. The class is only a collection of static...
6
by: DJ.precario | last post by:
Hi everyone, I am having a linking problem, and I'd appreciate any help with this. The code showing the problem: class base { public: virtual void f(int); };
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
4
by: Kevin Wan | last post by:
Hi, I have encountered a linking problem while using g++ to link our product. There are Fortran, C, C++ code in our product. The error listed below: /usr/bin/ld: final link failed: Bad value...
17
by: Mitas Nikos | last post by:
I am trying to use the library conio2 and though I have managed with a few relatively simple examples when i try to compile a program which conio's function clrscr is not in main() i get an error...
4
by: Gary Hughes | last post by:
Hi all, sometime I posted a problem in here where I was getting the following error from the linker in VS C++ 2003. Linking... GCClass.obj : error LNK2022: metadata operation failed (80131188)...
1
by: buchalino | last post by:
Hi Guys, Please can someone help me, I am having a linking problem . I am writing a socket program, the problem is just the linking . I am using VC++ In the process of the problem, I...
1
by: fsmountain | last post by:
Hi guys, I am trying to compile VTK5.0 with Qt GUI Support in Windows 2000 that has Qt Open-Sourced 4.1.2 and CMake 2.4.2 installed. After QVTK is enabled in CMake, configuring it will prompt...
4
by: naveenmurthy | last post by:
Hello All, I have created a .mht file in following format. 1. The .mht file contains following htmls. a. MHTLinkingProblem.html b. Left.html c. Right.html d. Start.html
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.