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
7
votes
1 answer

LNK2001: My boost libraries are (probably) built incorrectly

I decided to update my boost libraries from 1.61 to 1.63, and in the project that I updated to use the new files, I'm getting some new error messages I wasn't getting before: error LNK2001: unresolved external symbol "class…
Xirema
  • 19,889
  • 4
  • 32
  • 68
6
votes
3 answers

error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString & __thiscall QString::operator=(class QString &&)"

I'm desperate about finding any information about the mentioned error. I'm working on visual studio 2010. When I compile my project (in 32 bits), in debug or release, I get the following message : 1>heterogeneous.obj : error LNK2001: unresolved…
Yauda
  • 159
  • 2
  • 10
6
votes
3 answers

Unresolved Externals Nightmare

Hello industry veterans, I am a junior in college embarking on my first summer programming internship, and I am in way over my head. The company I'm working for has purchased a colossal application from another company that has slowly been…
Alex Jansen
  • 1,455
  • 5
  • 18
  • 34
5
votes
1 answer

Linker errors running bjam on Boost Python Tutorial

I have been working on solving this problem for fourty hours now, using every boost python resource I could find, and every permutation of installation and building I can think of, but could not find anything that worked for me. Like many people…
JoseOrtiz3
  • 1,785
  • 17
  • 28
4
votes
0 answers

Visual Studio 2015 unresolved external symbol __imp___environ

I'm migrating a Visual Studio 2013 C++ project to Visual Studio 2015 and I'm running into linker errors. My understanding is that C++ 2015 introduced breaking changes, so I may need to recompile the libs. However, I have a 3rd party lib that I…
Jason Tyler
  • 1,331
  • 13
  • 26
4
votes
1 answer

LNK2001 and LNK2019 errors - DirectX unresolved external symbols

I am following along with the book "Introduction to 3D Game Programming with DirectX11" by Frank D. Luna. And I am getting these errors when I try and build my project. >BoxDemo.obj : error LNK2019: unresolved external symbol…
Desenski
  • 61
  • 1
  • 3
  • 9
4
votes
1 answer

error LNK2019 and LNK2001 with VS2010 and Qt Library

I'm trying to reproduce the Qt example "webbrowser" (from qt-everywhere-opensource-src-4.8.3/examples/activeqt/webbrwowser) with VS2010 ((I work on windows7 x64). So, I copied all files (.h and .cpp) from webbrowser folder to my project. Also, in…
Cristina1986
  • 505
  • 1
  • 8
  • 21
4
votes
2 answers

Why would a .lib compiled in VS2003 fail to link with code compiled with VS2008?

We just had an interesting experience in trying to link a set of code compiled using Visual Studio Express 2008 with a .lib compiled with Visual Studio 2003. All in C++. To be precise, it was the SystemC 2.2.0 kernel that was compiled in VS2003…
3
votes
1 answer

static library: static const array - LNK2001: unresolved external symbol in app using library

I've declared the static const array in the header and then implemented it in the cpp file but I cannot figure out what is going on. Subsys.h: #ifndef _SUBSYS_H #define _SUBSYS_H namespace Engines { namespace Particles { class…
Hans
  • 55
  • 7
3
votes
1 answer

Compiling in VS2013: error LNK2001 using C++

I'm trying to compile my game with Visual Studio 2013. The game uses Box2D, but when compiling in Release mode the release Box2D.lib is giving errors. It works fine when compiling in Debug mode with the debug Box2D.lib. I'm getting 135 errors, and…
lefti
  • 268
  • 4
  • 13
3
votes
1 answer

LIBCMT.lib: error LNK2001: unresolved external symbol _main

Yes I know there are hundreds of posts about LNK2001 on Stackoverflow already. But NONE of them solved my problem. So I post my solution here. Symptom: An ATL DLL compiles fine as Debug but fails with the above error compiled as Release. Stuck for…
Elmue
  • 7,602
  • 3
  • 47
  • 57
2
votes
1 answer

#include causes unresolved external symbol, bcp used

I'm not an experienced programmer. I tried to cut part of boost and paste it directly into my project which is a C++ solution in Visual Studio 2010. I've done it this way: uncompress boost library bootstrap.bat bjam tools/bcd - this created dir…
Michal
  • 163
  • 1
  • 8
2
votes
1 answer

PDB file missing when trying to run Firebase on a Flutter project [LNK4099, LNK2019, LNK2001]

PDB files not found when trying to run Firebase on a Flutter project. I'm trying to run a Flutter app on VS Code. I set up Firebase, added a google-services.json file to my root folder and I've installed the following dependencies:cloud_firestore,…
2
votes
0 answers

Visual Studio lnk2001 error for boost iostreams::zstd

I am trying to build OpenMVS with Visual Studio 2017. I have installed boost 1.74, which is found as well. But when I try to build, I get the following error: Error LNK2001 unresolved external symbol "unsigned int const…
brandbenni
  • 23
  • 4
2
votes
0 answers

error LNK2001: unresolved external symbol, how to solve?

I am sorry if this question has been asked before but I have looked at many answers and it hasn't helped me (or maybe I just don't know where to look exactly myself). I have been given this code to work with so its not my own code, hence why its…
1
2 3
11 12