473,624 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Errors when executing linked program

1 New Member
HI i have inherited a Tool at work and when i go to compile this is the errors i am getting

Linking...
Creating library ..\..\..\VCProj ect32\common\Dl ls_Libs/Release/dsdev32.lib and object ..\..\..\VCProj ect32\common\Dl ls_Libs/Release/dsdev32.exp
devices.lib(Dev ices.obj) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindStrin g(char *,int,int,int)" (?BindString@CS QL@@QAEHPADHHH@ Z)
devices.lib(dev defdl.obj) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindStrin g(char *,int,int,int)" (?BindString@CS QL@@QAEHPADHHH@ Z)
devices.lib(DEV DICT.OBJ) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindStrin g(char *,int,int,int)" (?BindString@CS QL@@QAEHPADHHH@ Z)
C:\VCProject32\ common\Dlls_Lib s\Release/dsdev32.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


I have link all the .lib files and all of the setting seem to be correct.
Apr 4 '08 #1
2 1286
pootle
68 New Member
HI i have inherited a Tool at work and when i go to compile this is the errors i am getting

Linking...
Creating library ..\..\..\VCProj ect32\common\Dl ls_Libs/Release/dsdev32.lib and object ..\..\..\VCProj ect32\common\Dl ls_Libs/Release/dsdev32.exp
devices.lib(Dev ices.obj) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindStrin g(char *,int,int,int)" (?BindString@CS QL@@QAEHPADHHH@ Z)
devices.lib(dev defdl.obj) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindStrin g(char *,int,int,int)" (?BindString@CS QL@@QAEHPADHHH@ Z)
devices.lib(DEV DICT.OBJ) : error LNK2001: unresolved external symbol "public: int __thiscall CSQL::BindStrin g(char *,int,int,int)" (?BindString@CS QL@@QAEHPADHHH@ Z)
C:\VCProject32\ common\Dlls_Lib s\Release/dsdev32.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


I have link all the .lib files and all of the setting seem to be correct.

Hi James,

The error is quite clear, the linker is complaining because it cannot find the definitions of the mentioned symbols. Are you sure you have the linker settings correct? Check that all .lib files are specified, but also check that the linker can find the .lib files (library path).

Regards.
Apr 5 '08 #2
weaknessforcats
9,208 Recognized Expert Moderator Expert
Not only must the lib files be listed as linker input in the project properties, the paths to those libraries must be defined as addtional linker dependencies in the project properties.
Apr 6 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2337
by: Thomi Richards | last post by:
Hi, I'm trying to create a simple stack class using C++ and templates. Everything works well and good if I amke the class totally inline. However, as soon as I try to seperate the class into a .h and a .cpp file, gcc throws some strange linking errors. Compiling like this:
2
2584
by: Kavitha Rao | last post by:
Hi, I am getting the following errors while trying to run this snippet in Microsoft Visual C++.Can't seem to print the crc value stored. /* +++Date last modified: 05-Jul-1997 */ /* Crc - 32 BIT ANSI X3.66 CRC checksum files */ #include <stdio.h> #include "crc.h"
30
2162
by: prasanna | last post by:
i will be very thankful if you sent all the errors and warnings regarding to the language C thank you
0
1487
by: BasicQ | last post by:
I am running an executable from my aspx page with the click of a button. A date is passed as an argument. I am able to get the standardoutput from the Process(Exe) into the label of my page after the process has completed executing. My problem is I need to get the output in the label simultaneously when the EXE is running, not after it has completed executing. Just like when I run the Exe in the cmd prompt. In my code I am opening two...
3
4370
by: walkeraj | last post by:
I'm trying to compile an open source game called IVAN , and I'm able to compile it from a makefile, but not from an IDE. I have attempted to recreate the way the makefile compiles the project as closely as possible, yet I'm getting odd linking errors. I think I've traced it to some kind of problem with the SDL libraries it uses, yet I can't explain why it will compile from the makefile and not from the IDE. I have made sure that the ide...
1
2169
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string>
20
6082
by: JohnQ | last post by:
The way I understand the startup of a C++ program is: A.) The stuff that happens before the entry point. B.) The stuff that happens between the entry point and the calling of main(). C.) main(). So, if the above is OK, does static initialization occur during A or B? What happens during A?
9
2909
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading the text files from the watched folder line by line into variables and then posting them to a SQL table. All of the code for the form is shown below. And it works fine except for 2 issues. First issue: In the Finally of the Try for teh SQL...
0
8249
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.