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
0
votes
0 answers

LNK2019 unresolved external __declspec(dllimport) SDL_main

I am working on making a game engine. The engine is dll project. Right now the engine builds to a dll and lib. I am trying to test what I have so far with with another project. This is the error messages that I get: error LNK2019: unresolved…
Yomi
  • 9
  • 3
0
votes
1 answer

Linking errors LNK1120 and LNK2019 - "unresolved external symbol _main"

1>------ Build started: Project: Seminarski, Configuration: Debug Win32 ------ 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users-- : fatal error LNK1120: 1 unresolved…
ante_f
  • 200
  • 11
0
votes
2 answers

C++ linker errors, unresolved externals

Why am I getting linker errors when trying to compile this code, this is basically a code for a template class matrix that is complex & matrix is a square matrix so if size "3" is entered it means a matrix of [3][3] but somehow it gives me errors,…
0
votes
1 answer

Config Libs produced by scons construction tool introducing LNK2019

We are using SCons build our project, including things like producing static libraries and Visual Studio project files (.sln, .vcxproj). In the SConstruct file (written in Python), we specify:…
suitmyself
  • 41
  • 7
0
votes
1 answer

Resolving a LNK2019 error in main

I know there are many linkage error questions similar to mine, but I haven't been able to fix it with any of the responses. I've made sure to add the correct scope resolution operators and give my constructors and destructors bodies, but the error…
user3750325
  • 1,502
  • 1
  • 18
  • 37
0
votes
0 answers

Doing the dynamic library tutorial but I have LNK2019 errors

The tutorial I'm doing is this one : https://msdn.microsoft.com/en-us/library/ms235636%28v=vs.100%29.aspx I have vs2010 and I'm compiling everything in debug in win32. I'm pretty sure I've followed every instruction step by step. I can even find the…
asdfasdf
  • 774
  • 11
  • 29
0
votes
1 answer

C++ API implementation in heade file LNK2019

I've 3 projects in my solution: Project_I, Project_A, Project_B Project_I contains header files only (no cpp), this projects defines interfaces in the header files that Project_A and Projects_B derive from and implement. Since I want default…
Hawk89
  • 233
  • 1
  • 2
  • 12
0
votes
1 answer

error LNK2019: unresolved external symbol

I'm having trouble compiling an old MFC WIN CE embedded project in windows 7 visual studio 2010. I believe the old application was compiled in embedded Visual Studio 4 and needed mfcce211.dll. Any who, all of the source files manage to compile fine…
user4292309
0
votes
0 answers

error LNK2019: unresolved external symbol, using Multiple Inherritance

please, can someone help me on my assignment? It's an very basic program to learn how to use Multiple Inherritance. the errors I get are: Error 1 error LNK2019: unresolved external symbol "public: void __thiscall Wasmachine::wassen(void)"…
Job Douma
  • 9
  • 1
0
votes
0 answers

LNK2019: unresolved external symbol C++

I've searched and searched for hours and can't seem to find a fix for this. I'm building a linked list, and tested it as a type int and everything worked perfectly, now after I've converted it to a class template it's come up with this. Hopefully…
HyperionX
  • 1,332
  • 2
  • 17
  • 31
0
votes
1 answer

Linking FreeImage VS2013

Have been trying to link FreeImage to with Visual Studio Express 2013 and getting little stuck, have followed Building & Linking FreeImage with Visual Studio Express 2013 and problem with having to include seems to been fixed with update…
0
votes
1 answer

C++ error LNK2019: unresolved external symbol _main referenced in function _tmainCRTStartup

I am a complete beginner with C++. I am trying to debug my code because I am sure there are some pointer errors and such that I am still trying to understand but I can't compile it. The code is originally from a java program I wrote which is just a…
Tyler
  • 1
  • 1
0
votes
2 answers

Using a win32 .lib with a x64 project in Visual C++

I have a C++ library (downloaded here). In the library, there are some ".h" header files, ".cc" files containing the code and two static ".lib" that are included in a "win32" folder. I am doing solely a x64 project in Visual Studio 2012 C++. In…
Doombot
  • 553
  • 3
  • 8
  • 18
0
votes
1 answer

Library to link for using COM (Co Initialize) in VC++

I'm having a VC++ solution (VS 2013) which I'm compiling using only Microsoft provided "mincore.lib" & hence I untick the "Inherit from Parent or Project defaults" in the linker options , in C/C++-> preprocessor & also iu additional include…
codeLover
  • 3,720
  • 10
  • 65
  • 121
0
votes
1 answer

Unresolved external symbol referenced in function _main

I found this issue (see the title of my question) many times on the internet and at stackoverflow although most often related to objects. No objects here. Just plain C/C++. I tried most of the suggestions to solve it. Nothing worked. The code below…