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
8
votes
2 answers

OpenCV won't compile due to unresolved externals -- LNK2019

I am brand new to OpenCV and have been trying to set it up in Visual Studios 2010 Ultimate. I have followed the documentation exactly, and linked the files as it said. Here are the additional libraries that I am…
loganfarr
  • 581
  • 2
  • 4
  • 11
7
votes
3 answers

C++ LNK1120 and LNK2019 errors: "unresolved external symbol WinMain@16"

I'm trying to do another exercise from Deitel's book. The program calculates the monthly interest and prints the new balances for each of the savers. As the exercise is part of the chapter related to dynamic memory, I'm using "new" and "delete"…
Mike55
  • 497
  • 13
  • 26
6
votes
2 answers

Unresolved externals error in VC++

i am learning vc++ and checking with code for usage information of memory. this program is giving me three errors of unresolved externals.. error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function "void __cdecl…
user3471546
  • 381
  • 1
  • 6
  • 17
6
votes
9 answers

How to solve error LNK2019

I am sending a simple email in C++. I downloaded a sample C++ program from the below link. http://cboard.cprogramming.com/cplusplus-programming/125655-sending-simple-email-cplusplus.html The sample program seems to hit the following error when it…
user1
  • 687
  • 7
  • 13
  • 24
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

Error LNK2019: unresolved external symbol "toString(int)"

Environment: Windows XP. Visual Studios 2010. Language - C++. I have run into the following link error & have run out of ideas how to fix this problem. I have a project (CnD Device) which links to 2 projects (Messages & Carbon) controlled by my…
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
5
votes
3 answers

error LNK2019: unresolved external symbol. c file to cpp

There is a project made in C, its file is RawInput.c from http://www.codeproject.com/Articles/185522/Using-the-Raw-Input-API-to-Process-Joystick-Input. I have compiled it and it works perfect in vs2012. But when i pasted the same code within a cpp…
user3033627
  • 61
  • 1
  • 2
5
votes
1 answer

VS2010 Unresolved External Symbol boost::asio::detail::winsock_init_base::throw_on_error when linking boost-system with a project using libtorrent

I'm trying to build a small command line BitTorrent client using Rasterbar's libtorrent, which depends on Boost. I've built both the Boost libraries and the libtorrent library using their respective directions, but when I try to build my project I…
4
votes
1 answer

VS10 always links to SUBSYSTEM:WINDOWS; CMake+SDL+GLEW

I'm just trying to set up a simple project that shall be able to compile on every platform, that is supported by CMake. I started my project on a Win7-system and wrote a little main.cpp that includes SDL.h and GL/glew.h. The style of the…
marsuek
  • 41
  • 2
4
votes
2 answers

which library contains _is_c_termination_complete

I am getting LNK2019 error from linking C++ code with the standard library C++ library. I need to know which libraries contain the functions: is_c_termination_complete, __acrt_initialize, __acrt_uninitialize, __acrt_uninitialize_critical,…
4
votes
1 answer

Using FFMPEG in a Visual Studio 2013 ultimate project, linking error LNK2019

I'm trying to use FFmpeg library and TIFF lib in my project (I'm making a .dll and/or .exe also). I have searched through the answers provided in here and Google, and linked the /dev/include 64-bit (32-bit VS making 64-bit project) to Additional…
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: unresolved external symbol _main referenced in function ___tmainCRTStartup error

I am programming SDL in C++ and I keep getting an error: error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup What can I do to resolve this? Here is my source: #include int main(int argc, char…
user3814024
4
votes
2 answers

error LNK2019: unresolved external symbol

Ok, so I'm having a problem trying figure out the problem in my code. I have a lot of code so I'm only going to post the relevant parts that are messing up when I compile. I have the following function inside of a class and it will compile and…
Josh Bradley
  • 4,630
  • 13
  • 54
  • 79
1
2
3
37 38