lnk2019

error LNK2001 and error LNK2019 (C++) -- Requesting some learning about these errors

Alright, so I just finished my last compiler error (so I thought) and these errors came up: 1>GameEngine.obj : error LNK2001: unresolved external symbol "public: static double WeaponsDB::PI" (?PI@WeaponsDB@@2NA) 1>Component.obj : error LNK2001: unresolved external symbol "public: static double WeaponsDB::PI" (?PI@WeaponsDB@@2NA) 1>Coord...

Linker errors in Visual C++ LNK2005, LNK2019 - not sure why

I'm trying to build code from the nVidia 9.5 SDK but I get the following linker errors: >1>NV_D3DCommonDX9U.lib(NV_StringFuncs.obj) : error LNK2005: "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::getline<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_istream<char,struct st...

Visual C++ Linking LNK2019 problem with Precompile Header

Hi all, I had a very weird problem with precompile header. The linker generates LNK2019: unresolved external symbol error when I implement method in .cpp file. However, the program could be compiled if I implement method in .h file. I happened to find out a solution but I have no idea about the root cause of this error. My project str...

C++ LNK2019 and LNK1120 errors

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" operators. For some reason, I get these two errors: LNK2019: unresolved external symbol W...

link time error in vc++ when using confuse library

Hello to everyone, I am trying to use confuse library on windows. I get a link time error when confuse is compiled in vc++. how to resolve it. Please note that libConfuse is a configuration file parser library and written in C. 1>Linking... 1>main.obj : error LNK2019: unresolved external symbol __imp__cfg_opt_getnint referenced in fu...

MSVC: inspecting static libraries (fixing unresolved external symbols)

I wanted to ask what tools and techniques you use to fix linker errors in MSVC. My problem is, that I link an executable against a self built static lib and I get a lot of unresolved external symbols (LNK2019). I've tried building my libs with different calling conventions but I didn't succeed. I want to inspect that lib file (it's a de...

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 everything will run fine until I call the function "CalculateProbabilityResults" and it runs th...

lnk2019 error in very simple c++ program

I have tried removing various parts and building, but nothing makes the lnk2019 error go away, or even produces any normal errors. Everything is in the one file at the moment (it won't be later when it is finished). The program has three lists of words and makes a jargon phrase out of them, and you are supposed to be able to add words, ...

MSVC 2008 - Unresolved External errors with LIB but only with DLL, not with EXE project

I have a DLL that I am trying to link with a libjpeg LIB using MSVC 2008 that is generating Unresolved External Symbol errors for the libjpeg functions. I also have a test project that links with the exact same libjpeg library file and links without error and runs fine too. I have triple-checked my LIB path and dependent LIBS list se...

C++ LNK2019 error with constructors and destructors in derived classes

I have two classes, one inherited from the other. When I compile, I get the following errors: Entity.obj : error LNK2019: unresolved external symbol "public: __thiscall Utility::Parsables::Base::Base(void)" (??0Base@Parsables@Utility@@QAE@XZ) referenced in function "public: __thiscall Utility::Parsables::Entity::Entity(void)" (??0Ent...

Link error after update from VS2008 to VS2010

Hi all, Today I met an link problem after updating the VS version from 2008 to 2010, the error is something like this: error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) referenced in function "public: class std::basic_string,class std::allocator > & _...

PhysX SDK - error LNK2019: unresolved external symbol when compiling "wavefront.cpp"

Hi all, I'm using the PhysX SDK and I'm trying to load an .obj file with the WavefrontObj object which is defined by the files "wavefront.h/.cpp", localized in the samples directory. When I'm compiling my project, I got this error: 1>Linking... 1>wavefront.obj : error LNK2019: unresolved external symbol "char * __cdecl FindMed...

LNK 2028 - 2019 / Managed and Unmanaged C++ ? (VS 2008)

Hi, I am trying to link an open-source library to one of my project. The library is unmanaged (named Tetgen) and my project is in managed C++. I create a .lib or a .dll, that doesn't change anything. My project recognizes the header and can use the functions defined in it, but cannot access to the cpp. I got a 2028 error each time it wa...

Trouble with building Cuda programme in VS2008: LNK2019

Hi, I am having some trouble with building my programme. I am working on Windows 7 professional 32-bit with Visual Studio 2008. I have the Cuda SDK and my project is set up with all links to cudart.lib etc. My problem is when I try to build my project it returns the following errors: 1>crowdSim.obj : error LNK2019: unresolved externa...

Which library I need to add? : error LNK2019

Error 20 error LNK2019: unresolved external symbol "public: __thiscall CAnyseeUSBTVControllerDlg::CAnyseeUSBTVControllerDlg(class CWnd *)" (??0CAnyseeUSBTVControllerDlg@@QAE@PAVCWnd@@@Z) referenced in function "int __cdecl Init(void)" (?Init@@YAHXZ) anyseeUSBTVControllerDlg.obj anyseee30 I have this error when I...

Linking error LNK2019 in MSVC, unresolved symbols with __imp__ prefix, but should be from static lib.

Hi all, I'm running into linking problems in MSVC for a project that I wrote for g++. Here's the problem: I build libssh as a static library as part of my application, adding the target in cmake with add_library(ssh_static STATIC $libssh_SRCS) Libssh is in C, so I have 'extern "C" {...}' wrapping the includes in my c++ sources. I then...

C++ LNK2019 ( between project classes )

Hi, I have an very strange error : When i want to use the SocialServer::Client class from my SocialServer::Server class the linker threw me 2 LNK2019 errors : Error 1 error LNK2019: unresolved external symbol "public: void __thiscall SocialServer::Client::Handle(void)" (?Handle@Client@SocialServer@@QAEXXZ) referenced in function "priva...

Unresolved external symbol: @12 vs @8 at the end of symbol name

Hi all, I don't have any significant experience with C++ but recently had to be involved into the project with C++ part (apache modules, actually). Right now I am just trying to build some existing very much legacy code and face the very weird problem when VC++ linker cannot find one particular function in the apache library (while see...

compiling problem

when is calling the function i'm getting error: " H:\workspace\HW5\HW5\Manager.obj H:\workspace\HW5\HW5\Manager.obj> Error 22 error LNK2019: unresolved external symbol "public: void __thiscall Shalishut::Task8_MoveVehicleFromBaseToBase(class Military *,char const *,char *,char *)" (?Task8_MoveVehicleFromBaseToBase@Shalishut...

LNK2019 and LNK1120 with functions in an external file

I have taken out some functions from a source file into another since I want to use them also in other files. The current structure is as follows utils/extFuncs.h #ifndef _extFuncs_h #define _extFuncs_h inline int someFunction (float v); #endif utils/extFuncs.cpp #include "utils/extFuncs.h" inline int someFunction (float v) { re...