Questions tagged [lnk2001]

LNK2001 is a common Visual Studio linker error condition indicating that the linker is unable to locate or find the symbol being referenced. Check the SO post on common errors and their resolution.

LNK2001 is a common Visual Studio linker error condition indicating that the linker is unable to locate or find the symbol being referenced.

Related errors include .

Before posting, check this post to see if it answers your question.

179 questions
0
votes
1 answer

error LNK2001: unresolved external symbol? I'm absolutely lost

I am new to C++ and I have been practicing by translating my old Java code into c++. I have come across so many errors that I almost gave up hope. I'm also trying to fix an error in the main file, I'm trying to call a function in the main file, but…
Tee-Man
  • 67
  • 2
  • 2
  • 5
0
votes
1 answer

How to access external dll function?

Im busy to create a dll (in Windows, with VS 6.0). That dll have some functions who call some other functions from a external dll. In the main dll I have added : include "external_lib.h" But when I try to compile get this error: main_lib.obj :…
0
votes
3 answers

error LNK2001: unresolved external symbol - when creating abstract class c++

UrzadzenieElektroniczne is my abstract Class and class Komputer inherits from it. I still get errors. I tried to fix them but none of the resolutions I found on the internet worked. Is there a problem with the definition and declaration of my…
fragon
  • 3,391
  • 10
  • 39
  • 76
0
votes
1 answer

linking libtiff - LNK2001: unresolve external symbol TIFFOpen

I am using MSVS 2010 on a 64 bit machine. I installed tiff libraries version 3.8.2 using the set-up file, changed project properties sheet: include - *\GnuWin32\include; linker - *\GnuWin32\lib, input - libtiff.lib. But MSVS 2010 still gives me the…
0
votes
1 answer

Unresolved external symbol on wince

I received this errors when trying to compile wince code: Error 3 error LNK2019: unresolved external symbol "public: __thiscall CTransInPlaceFilter::CTransInPlaceFilter(wchar_t *,struct IUnknown *,struct _GUID const &,long *)"…
user2004403
  • 193
  • 2
  • 13
0
votes
1 answer

LNK2001: unresolved external symbol, when trying to call method of object from another DLL

I have two modules, each with own class and with own object. Each module is compiled to a DLL. I want to make a "cross-DLL" method call, having pointer to the object of another class, but linker doesn't allow to do this (MSVC++ 2008). More…
Carrier
  • 13
  • 3
0
votes
3 answers

C++ OpenGL LNK2001 when header is included

I am getting 28 error LNK2001: unresolved external symbol messages. I know for a fact, for example, that glBindVertexArray is in _int_gl_exts.h, and sure enough I am including it. #include I don't know if this is a…
caleb.breckon
  • 1,336
  • 18
  • 42
0
votes
2 answers

Error LNK2001 while using my static library

I'm having LNK2001 issues while building my solution. The solution has 3 projects, one of them if just a main that returns 0, so I'll exclude it from the problem. One project (SerialPort) is a .lib that implements a class (SerialPort), while the…
joao figueiredo
  • 145
  • 1
  • 13
0
votes
2 answers

C++ Interface Throwing Unresolved External Symbol Error

Alright, I've got what should be an easy question but there are literally no examples of what I am looking for online, only copies of the same example which does everything in one file. I'm trying to make an interface and a method to use it like the…
0
votes
1 answer

Linking msvcrt.lib cannot find __imp__InterlockedCompareExchange@12

I am trying to solve following linking error for past few days, But I have no clue yet. VS and window sdk installation I guess is fine because there are 100's other projects that are being built successfully. What exactly I have done is; I have made…
Niraj Patel
  • 33
  • 1
  • 9
0
votes
1 answer

Using QGIS API but getting unresolved external symbol "public: static struct QMetaObject const in Windows

I am trying to build an application that uses the QT and the QGIS API (1.8.0). Under Linux I don't get any problem (using QT 4.7.0), but under Windows (using QT 4.8.1) I get: 1>maptoolselect.obj : error LNK2001: unresolved external symbol "public:…
QLands
  • 2,424
  • 5
  • 30
  • 50
0
votes
2 answers

Qt Q_OBJECT creates linker errors in Visual Studio 2010

I'm trying to get Qt to work with Visual Studio 2010. I've built a working program that I can run in the debugger. However, when I try to add the Q_OBJECT macro to my class, it generates a bunch of linker errors. 1>------ Build started: Project:…
limp_chimp
  • 13,475
  • 17
  • 66
  • 105
0
votes
1 answer

vs 2005 error LNK2001: unresolved external symbol (2)

"public: virtual long __stdcall PCI1761Event::GetTypeInfoCount(unsigned int *)" (?GetTypeInfoCount@PCI1761Event@@UAGJPAI@Z) Code class PCI1761Event : public CComObjectRoot, public _IAdvDIOEvents { public: BEGIN_COM_MAP(PCI1761Event) …
suigara
  • 35
  • 4
0
votes
1 answer

Qt LNK2019, LNK2001, LNK1120 Errors with QT Multimedia [Visual Studio Express '10]

For some reason, whenever I try to use sample code my compiler refuses to cooperate. The sample code I am using comes from here: http://qt-project.org/doc/qt-4.8/multimedia-videowidget.html ; I have currently only used the VideoWidgetSurface…
JT Cho
  • 263
  • 1
  • 4
  • 11
0
votes
1 answer

Getting Error LNK2019 due to creating a vector array from structure header?

I'm am attempting to create a vector of arrays from inputting files and then loading the vector into my main. I am also attempting to use the same vector throughout my program. When I compile, however, I get a bunch of Error LNK2019s. I think I have…
user1362166
1 2 3
11
12