Questions tagged [lnk2019]

LNK2019 is a common MSVC linker error indicating that the linker was unable to find a required external symbol in any compilation unit. Check the SO post on common errors and their resolution.

LNK2019 is a common MSVC linker error indicating that the linker was unable to find a required external symbol in any compilation unit. A possible and common cause of the error is a symbol that is declared but never defined.

Before posting, check these posts

558 questions
1
vote
6 answers

Linker error LNK2019 when using DCMTK with Visual Studio

This is not a new question but the solutions haven't worked for me. I want to read dicom files using C++. I have 32-bit Windows PC with VS 2013 community edition. This post and other answers therein suggested using DCMTK. I installed DCMTK (using…
Ruchir
  • 845
  • 2
  • 10
  • 24
1
vote
1 answer

c++ LNK2019 error between two classes in same project

So I'm trying to create a program that mimics the Minesweeper game. I have double-checked the header files, the class names, and made sure the headers are #included in the other cpp files, but when I try to build the program, I get a LNK2019 error…
JaykeBird
  • 372
  • 6
  • 17
1
vote
0 answers

Using boost::is_any_of results in linker errors

I am trying to compile an existing code base developed with VS 2010 with VS 2013. The old implementation was using Boost 1.46 which does not support VS 2013. Therefore I upgraded to Boost 1.60. I got stuck with the following part of a method: int…
Tadej Mali
  • 1,143
  • 8
  • 18
1
vote
1 answer

Premake generated solution wont compile in Release but compiles in Debug

I have a Project set up in Premake that consists of a SharedLib and a ConsoleApp that links to that SharedLib. Furthermore, the SharedLib links to the SFML binaries. I successfully setup before: - A premake Project that contains a ConsoleApp and a…
sro5h
  • 322
  • 2
  • 12
1
vote
1 answer

C++ LNK2019 error: Unresolved external symbol

I'm having issues building/compiling my program for an assigned lab in class. I showed the code to my professor and in just glancing over it she said she too couldn't tell what was creating the error. My apologies if I missed a previous question…
Smallen
  • 13
  • 2
1
vote
0 answers

Single error LNK2019 on compile using boost serialization

I'm new to c++, and found the boost library just recently. In my small program I'm using to learn c++ (I'm using MSVC 2015), I want to use boost serialisation to save/load my player class. I have Implemented the required functions in my class like…
Yepadee
  • 61
  • 5
1
vote
0 answers

C++ [ Operator<< overload difficulties][Classes+Templates interaction mistakes] LNK1120 and LNK2019 errors

I have been learning some standard OOP things like working with classes and so on. And I've got into the trouble, when code seems not to be mistaken, but compilator keeps telling you about some crappy errors. After a while I decided to ask a…
1
vote
2 answers

c++ error LNK2019: binary search tree

Thinking there is an issue with my root declaration, the three errors are showing up in my insert function, default constructor and destructor. If I #include .cpp file: There is an issue with my insert function and constructing the tree properly. I…
user5407906
  • 87
  • 1
  • 8
1
vote
2 answers

LNK2019 : unresolved external symbol, searched for in a non-existing *.obj file

Good morning, I have just inherited an application from a collegue who has left, and I'm already in trouble: the last thing we have done is porting the solution from Visual Studio 2010 to 2013. Now while building one of the projects in the solution,…
Dominique
  • 16,450
  • 15
  • 56
  • 112
1
vote
3 answers

error LNK2005 - What am I doing wrong here?

I've been given some source code (as part of an assignment) that I'm supposed to modify, but I can't get the unmodified version of the code to compile and I'm tearing my hair out. (To be clear - this code is for a school assignment on hash tables,…
b1skit
  • 327
  • 4
  • 16
1
vote
1 answer

LNK2019 error with simple class

(Sorry, I know there are many, many posts about this error, but none of them seem to have as simple a program as I'm trying to build. I apologize, but I don't know enough about C++ to figure out how to use the other questions to my advantage.) I'm…
1
vote
0 answers

CGAL error LNK2019: unresolved external symbol

I am building CGAL 4.6 32 bit with Boost 1.58.0 32bit ... the generation is done without error using cmake gui 3.2.2 But when I am trying to build it with visual studio 2013 I am getting the following error: all_files.obj : error LNK2019: unresolved…
Sarbartha Sengupta
  • 316
  • 1
  • 4
  • 11
1
vote
0 answers

c++ compile error- LNK2019: unresolved external symbol

I realise that there are a few questions on SO regarding this, but none of them seem to answer my query... I am getting a compile error that says: error LNK2019: unresolved external symbol "private: void_thiscall…
Noble-Surfer
  • 3,052
  • 11
  • 73
  • 118
1
vote
1 answer

Error LNK2019: unresolved external symbol C++ in Qt platform

I'm getting these three errors and I have no idea why? I am using the Qt program and and the code below goes in a Qt widget project. The mainwindow.ui is not included because I can't change it anyways. The goal as of now is to get the age into a…
smitty_usmc
  • 23
  • 1
  • 1
  • 5
1
vote
2 answers

C++ inheritence and LNK2019

I have got this problem and don't know how to solve it. I have two classes. One is base ProgramVariableBase and one is derived ProgramVariable. Base class is in different project that is bulid as static library. I set additional include and library…
benderto
  • 896
  • 11
  • 39