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

Unsolved error when using WinInet.h (... error LNK2019: unresolved external symbol _WinMain@16....)

I'm a beginner to programming. I keep getting this error as I run my program. I have already checked online and many people suggest to add /* #pragma comment(lib, "wininet.lib") */ after all the includes, or to change property setting. I changed…
Honeycrisp
  • 53
  • 2
  • 12
1
vote
0 answers

Fixing unresolved external symbol error in C++

When I try to build my C++ application, I get a lot of unresolved external errors: 1>game.obj : error LNK2019: unresolved external symbol "public: __thiscall Player::Player(void)" (??0Player@@QAE@XZ) referenced in function "public: __thiscall…
andranos
  • 11
  • 1
  • 2
1
vote
3 answers

link time error in vc++ when using confuse library

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…
coolprg
  • 11
  • 1
1
vote
1 answer

Linking trouble with wininit library (LNK1120)

I use Visual Studio 2010 on Windows 7. I have this function: void send(char* log, char* pas, char* ser, char* plik) { HINTERNET hInternet; HINTERNET hFtpSession; hInternet = InternetOpenA(NULL,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0); …
1_bug
  • 5,505
  • 4
  • 50
  • 58
1
vote
1 answer

Compiler Error 2019 Unresolved External Symbol

I am trying to compile a program to make sure all the code is working. I am getting an Error 2019 Unresolved External with the following messages: 1>------ Build started: Project: Week 2 Dating Service, Configuration: Debug Win32 ------ 1> …
Alex McCoy
  • 91
  • 1
  • 2
  • 4
1
vote
1 answer

C++ Visual Studio 2010 LNK2019 Error - Some basic advice is needed

I got the following code: FooClass.h #pragma once #include #include "StdAfx.h" #include "FooClass.h" #include #include "FooClass.h" FooClass::FooClass(void) { } FooClass::~FooClass(void) { } int PrintMsg (std::string…
Cox
  • 35
  • 1
  • 9
1
vote
1 answer

How to get rid of LNK2019 unresolved external symbol errors with opencv and vs2012

I'm a visual basic programmer trying to get a visual c++ up and running with some source code I found that uses OpenCV. I'm not very experienced at all with c++. I'm getting unresolved external symbol errors and I've spent hours reading every…
NERL
  • 292
  • 4
  • 16
1
vote
0 answers

C++ Linker Errors (LNK 2019: unresolved external symbol) / Project Specific

Main Issue I am trying to build a homework project involving linked lists and some custom classes, but when I build the project, I get the following 3 linker errors... 1>customerImp.obj : error LNK2019: unresolved external symbol "class…
1
vote
1 answer

C++/Qt - Open Dialog from MainWindow -Error LNK2019 - LNK2001: unresolved external symbol

basically the goal of the code is to open a dialog that contain a QWebView (with some content) after a botton is clicked these is what i did: mainwindow.h: class MainWindow : public QMainWindow, public Ui::MainWindowUi { ... private slots: …
Gibnem
  • 675
  • 1
  • 8
  • 9
1
vote
1 answer

I have encountered the dreadful LNK2019 error and have no idea were to go from here.

I have looked around for over an hour now and I cannot find anything that is benefiting my situation. I am a beginner at C++, and this is my first attempt at splitting my code into two .cpp files and one .h file. I have yet to encounter any success.…
Dolbyover
  • 89
  • 1
  • 2
  • 10
1
vote
1 answer

C++ defining constructor from header

class_one.h: #ifndef CLASS_ONE #define CLASS_ONE #include namespace ones{ typedef enum{BLACK, WHITE, RED} b_color; typedef char b_letter; const b_letter letters[4] = {'A', 'B', 'C', 'D'}; class one{ b_color…
Sti
  • 8,275
  • 9
  • 62
  • 124
1
vote
1 answer

Visual C++ Error: LNK2019, LNK2028 and LNK1120

I'm working on a basic application to create a Java VM and launch a Java program from C++ with JNI. However, I have some compiling errors: Error 6 error LNK2028: unresolved token (0A00000D) "extern "C" long __stdcall JNI_CreateJavaVM(struct…
1
vote
1 answer

LNK2028 and LNK2019 error when using dll with no inline code

This is the first time I'm using .NET and its giving me hard time when using more than one project. What am I doing wrong? This is what I did: 1 Create a new project (and solution). A "Class Library" called "Lib". 2 Add file "Comp1.h" to "Header…
JMRC
  • 1,473
  • 1
  • 17
  • 36
1
vote
0 answers

MATLAB gives error while generating MEX file from Fortran source codes

When I try to generate the MEX file from the Fortran source code (TEINITG.F), Matlab always gives errors.After downloading the trial versions of Intel Visual Fortran 11.1 Microsoft Visual C++ 2008 SP1 linker, I used mex -setup to configure the…
ceydaok
  • 11
  • 1
1
vote
1 answer

Unresolved External Symbol with extremely simple class (VS2010)

I am holily convinced that this is an extremely basic thing that every living human being is perfectly able to perform, yet somehow it's not working for me. The FAQ and many other threads/questions found through Google have not fixed this for…