473,405 Members | 2,373 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,405 software developers and data experts.

LNK2001 link errors

Hello

I am using some classes from a third party and have included them in my
projecxt and am compiling and linking with them.

Everything compiles ok but I get these link errors:

I added all your files to my project and recompiled. Now everything compiles
as before but get these link errors:

Linking...
Win32Exception.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetB
yteTools@@YA?AV?$basic_string@DU?$char_traits@D@st d@@V?$allocator@D@2@@std@@
K@Z)
SocketServer.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetByt
eTools@@YA?AV?$basic_string@DU?$char_traits@D@std@ @V?$allocator@D@2@@std@@K@
Z)
ThreadPool.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetByteT
ools@@YA?AV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@std@@K@Z)
IOBuffer.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_string@ DU
?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
SocketServer.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z )
ThreadPool.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_string@
DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Debug/CubaMgr.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

I have a main (sort of global .h file and in there I have #include'd the .h
file I need from the range of third party headers.

There is no external library required so I am confused as to what would
cause this problem?
Dec 16 '06 #1
2 2969
Angus wrote:
Hello

I am using some classes from a third party and have included them in my
projecxt and am compiling and linking with them.

Everything compiles ok but I get these link errors:

I added all your files to my project and recompiled. Now everything compiles
as before but get these link errors:

Linking...
Win32Exception.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetB
yteTools@@YA?AV?$basic_string@DU?$char_traits@D@st d@@V?$allocator@D@2@@std@@
K@Z)
SocketServer.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetByt
eTools@@YA?AV?$basic_string@DU?$char_traits@D@std@ @V?$allocator@D@2@@std@@K@
Z)
ThreadPool.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetByteT
ools@@YA?AV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@std@@K@Z)
IOBuffer.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_string@ DU
?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
SocketServer.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z )
ThreadPool.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_string@
DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Debug/CubaMgr.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

I have a main (sort of global .h file and in there I have #include'd the .h
file I need from the range of third party headers.

There is no external library required so I am confused as to what would
cause this problem?
Learn how to use your linker.

I'd bet you forgot to add to your project the .cpp file that
defines the relevant symbols.

HTH,
- J.
Dec 16 '06 #2
On Dec 16, 11:03 am, "Angus" <nos...@gmail.comwrote:
Hello

I am using some classes from a third party and have included them in my
projecxt and am compiling and linking with them.

Everything compiles ok but I get these link errors:

I added all your files to my project and recompiled. Now everything compiles
as before but get these link errors:

Linking...
Win32Exception.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetB
yteTools@@YA?AV?$basic_string@DU?$char_traits@D@st d@@V?$allocator@D@2@@std@@
K@Z)
SocketServer.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetByt
eTools@@YA?AV?$basic_string@DU?$char_traits@D@std@ @V?$allocator@D@2@@std@@K@
Z)
ThreadPool.obj : error LNK2001: unresolved external symbol "class
std::basic_string,class std::allocator __cdecl
JetByteTools::Win32::GetLastErrorMessage(unsigned long)"
(?GetLastErrorMessage@Win32@JetByteT
ools@@YA?AV?$basic_string@DU?$char_traits@D@std@@V ?$allocator@D@2@@std@@K@Z)
IOBuffer.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_string@ DU
?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
SocketServer.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z )
ThreadPool.obj : error LNK2001: unresolved external symbol "void __cdecl
JetByteTools::Win32::Output(class std::basic_string,class std::allocator >
const &)" (?Output@Win32@JetByteTools@@YAXABV?$basic_string@
DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Debug/CubaMgr.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

I have a main (sort of global .h file and in there I have #include'd the .h
file I need from the range of third party headers.

There is no external library required so I am confused as to what would
cause this problem?
Taking your word for it that no external library is needed, you may not
have included all the right headers, or (more likely) there's a
template that hasn't got instantiated.

It's hard to say more without seeing the source files in question.

--mpa

Dec 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: We need more power captain | last post by:
Hi, I know less than a noob, I've been asked to do some compiles in VC++ 6 without knowing too much at all. (I'm a COBOL program normally so this is all too much for me) I open VC++6, open...
2
by: rangalo | last post by:
Hi All, I have succeeded in compiling a massive project, originally from vc6 to VS .Net 2005. Now, while linking I am having loads of linker errors with the above code. LNK20019 and LNK2001....
2
by: Maydogg6 | last post by:
I need a hand with some stubborn link errors. I'm trying to recreate and old program from 6.0 into .NET, but for some reason when I try to compile I'm getting linking errors for all my function...
6
by: walkerfx | last post by:
Hi Everyone, I have been trying resolve this issue for many hours and am not making any progress. I have a DLL that I'm updating with some new 3rd party libraries. However, there appears to be a...
6
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
5
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C...
0
by: bonnielym84 | last post by:
Im new here and im not sure whether is this the right place for me to post my question..anyway..hope that you can help me..i have been stucked in this problem since last wk..My problem is..I'm using...
0
by: =?Utf-8?B?SmF5?= | last post by:
Hello, I'm running into a linking problem when trying to build a dll like so... step1: native C++ library & managed c++ = managed c++ dll (this one builds fine) step 2: managed c++ dll (the...
0
by: Ryan Gaffuri | last post by:
hlink72@hotmail.com (Eric) wrote in message news:<ab8d8b14.0308220550.54fb5f22@posting.google.com>... LNK1120 is a standard C++ error. you using Visual C++? Means your references a class that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.