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

Unresolved external symbol linker errors for C++ class implementations

Unresolved external symbol linker errors for C++ class implementations See more: C++Zoom Question: I'm working on a project that involves integrating the Zoom SDK into my application. As part of this integration, I'm trying to implement a custom…
-1
votes
1 answer

Is it possible to initialize static fields within a static function?

I want something that looks like this...: class Foo { public: static void myStaticInit(); static SomeType myField; }; And inside .cpp: #include "SomeOtherFile.h" // contains SomeOtherType void Foo::myStaticInit() { SomeOtherType sot; …
Beko
  • 982
  • 3
  • 15
  • 26
-1
votes
1 answer

VS15: error LNK2001: unresolved external symbol

While declaring code, I got two errors - Unresolved external symbol and 1 unresolved externals. I see that the first causes the second one. The 'graphics' folder is located in the Project Location: C:\Users\cpp_shared\documents\visual studio…
-1
votes
1 answer

C++ OOP LNK2001 ERROR

As the title suggests, I have an OOP error in C++, the LNK2001 unresolved externals error. Here is my code, where did I go wrong? I'm using sfml to use the graphics in VS2015. // OOPExample.hpp #pragma once #include #include…
Goop Dev.
  • 7
  • 2
-1
votes
1 answer

error LNK2001: unresolved external symbol -- I can't get a SIMPLE INHERITANCE to work in C++

I'm struggling to use inheritance. I am studying computer science and have to work it out... Rihgt now I 'm trying to make my own class 'Copy' which contains a reference to a 'Drawable' object, For instance I have an object of the class 'circle'…
Pim
  • 554
  • 3
  • 12
-1
votes
1 answer

How do I follow this linker error?

I'm working my first internship, still trying to get this horrible thing to compile on Visual Studio 2008. I've spent a week playing around with IDE settings and Windows SDK installs and I don't think I'm going to make any more headway in that…
-2
votes
0 answers

C PLUS PLUS Project Linking protobuf static library comes out error LNK 2001

Protobuf Version : 4.22.2 CMake Version : 3.27.0 C++ Complier version : MSVC 19.36.32537.0 My English is poor, so I hope you will be patient to read it, please. I compile protobuf to static library and link it to my project, but always come out…
-2
votes
1 answer

error LNK2001: unresolved external symbol "class ATL:: CTraceCategory

I got the same error as per this post below. error LNK2001 someone replied "ATL uses ATLTRACE at debag-compilation. atlbase.h." What does this mean? Do I have to add atlbase.h to my dependency?
ObzidO
  • 11
  • 5
-2
votes
1 answer

Unresolved external symbol LNK2001, LNK2011, LNK2019

I have no idea what's wrong with my code. I have include guards in all my header files. Since there is quite some code and I'd like to keep it private the question is rather how I'd go about solving these errors. Error 1 error LNK2001: unresolved…
-2
votes
1 answer

Can't get rid of Error lnk2001

Hey guys and gals I need some serious assistance. I have this final and its due in 2 days and some hours. However I am unable to resolve this lnk2001 error at the end of my program. Please help me I have no clue how to resolve. I left the…
-2
votes
1 answer

error LNK2001: unresolved external symbol "class"

I've a header file having a "extern class definition" in it. Both these header file and class are in different C++ assembly. Now there is a class in different C++ assembly which is trying to access this "extern" class functions but there are all…
Bobby
  • 169
  • 1
  • 2
  • 9
-2
votes
1 answer

Various linker errors in visual studio 2012

I'm working on a school assignment for which we given some .lib files. I added them in the linker, and still I'm getting linker errors. When I changed those to a different path, I get a file not found error instead. My errors are: Error 53 error…
Cinaed666
  • 79
  • 9
-3
votes
1 answer

error LNK2001 - VS2008 & Qt build

I'm trying to rebuild a VS2008 project I've got from someone, but I can't figure what's the problem. the project has dependencies on Boost 1_43 and on Qt-4.6.2 (I've build boost lib and it seems okay with that one). I've already solved the firsts…
-3
votes
1 answer

Why doesn't this Inline header compile?

I come from a .NET and Java background, and I'm trying to create a simple scene manager for my game. It's an inline header file, and I'm getting errors compiling. #pragma once #include "Scene.h" class SceneManager { private: static Scene…
melotic
  • 51
  • 8
1 2 3
11
12