Linked Questions
3,693 questions linked to/from What is an undefined reference/unresolved external symbol error and how do I fix it?
229
votes
31
answers
790k
views
Unresolved external symbol in object files [duplicate]
During coding in Visual Studio I got an unresolved external symbol error
and I've got no idea what to do. I don't know what's wrong.
Could you please decipher me? Where should I be looking for what ...
104
votes
4
answers
628k
views
C++ error 'Undefined reference to Class::Function()' [duplicate]
I was wondering if anyone could help me out with this - I'm only new to C++ and it's causing me a fair amount of troubles.
I'm trying to make relatively simple Deck and Card class objects.
The ...
29
votes
15
answers
90k
views
C++ handling very large integers [duplicate]
I am using the RSA Algorithm for encryption/decryption, and in order to decrypt the files you have to deal with some pretty big values. More specifically, things like
P = C^d % n
= 62^65 % 133
Now ...
46
votes
3
answers
365k
views
Linker Error C++ "undefined reference " [duplicate]
Possible Duplicate:
What is an undefined reference/unresolved external symbol error and how do I fix it?
Trying to compile my program via g++ -o prog1 main.cpp -std=c++0x
I get the error:
/tmp/...
24
votes
6
answers
52k
views
Error with GLUT compile in ubuntu [duplicate]
I try to compile some "hello world" glut application:
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
GLint Width = 512, Height = 512;
...
34
votes
6
answers
323k
views
Undefined Reference to [duplicate]
When I compile my code for a linked list, I get a bunch of undefined reference errors. The code is below. I have been compiling with both of these statements:
g++ test.cpp
as well as
g++ ...
22
votes
1
answer
26k
views
GLFW - Failed To Open A Window [duplicate]
As my hunt for a cross-platform framework/library went in progress, GLFW was mentioned many times. So, I decided to try it out. Now, it seems as though I can't even init a window. :-/
#include <...
39
votes
1
answer
45k
views
"undefined reference" to Virtual Base class destructor [duplicate]
Possible Duplicate:
What is an undefined reference/unresolved external symbol error and how do I fix it?
I have some experience with Java, and am now doing a C++ course. I wanted to try writing an ...
31
votes
1
answer
91k
views
G++ undefined reference to class::function [duplicate]
I'm finally pretty desperate. So, in my c++ class we were instructed to use classes. We'd have the header file declare the class and functions while a separate .cpp file implements the it. Things ...
29
votes
1
answer
254k
views
What causes the error "undefined reference to (some function)"? [duplicate]
I get the error:
main.o(.text+0x1ed): In function `main':
: undefined reference to `avergecolumns'
collect2: ld returned 1 exit status
when I gcc *.o. I'm not quite sure what causes this error. ...
16
votes
6
answers
89k
views
How can I resolve "error LNK2019: unresolved external symbol"? [duplicate]
I've got this MFC application I'm working on that needs to have an embedded database. So I went hunting for a slick, fast "embeddable" database for it and stumbled accross SQLite.
I created a DB with ...
18
votes
5
answers
12k
views
LNK2019: unresolved external symbol in VS unit-testing [duplicate]
I get the error as stated in the title. I ensured the following:
- The Include directory, include library and additional include directory are set correctly
- In the properties, Subsystem is set to ...
6
votes
5
answers
46k
views
Visual Studio 11 GLFW external symbol error [duplicate]
The basic code I use is the example from http://www.glfw.org/documentation.html
I get this output:
1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------
1> ...
9
votes
3
answers
54k
views
Compiling and runnin OpenGL (glut) program in ubuntu 10.10 [duplicate]
I wrote this code:
#include <stdio.h>
#include <stdlib.h>
#include <GL/glx.h>
#include <GL/gl.h>
#include <GL/glut.h>
void init()
{
glClearColor(1.0,1.0,1.0,0.0);...
10
votes
1
answer
25k
views
Undefined references to stb_image functions? [duplicate]
I want to load images using stb_image. I downloaded stb_image.h from https://github.com/nothings/stb.
When I run the code:
string file="image.png";
int width,height,components;
unsigned ...