undefined-reference Questions
1
I've installed clang 3.2 on my Ubuntu 13.04 machine, and have compiled and built libc++, and everything is in place.
However, when I try to link my (really simple) code, the linker reports that ref...
Affiant asked 27/5, 2013 at 10:3
3
Solved
Here I am, trying to figure out what's wrong with my code without success :(
I'm writing a resampler but I guess that's of no interest at all, I'm just trying yo make this stupid warning go away. A...
Fadil asked 22/5, 2013 at 18:3
3
Solved
I'm dealing with inheritance in C++. I wanted to write a program for addition and subtraction of two arrays. Heres my code:
#include <iostream>
#include <cmath>
#include <sstr...
Ulyssesumayyad asked 9/5, 2013 at 11:19
5
Solved
Is it essential to have a definition for a virtual function?
Consider this sample program below:
#include <iostream>
using namespace std;
class base
{
public:
void virtual virtualfunc()...
Insecurity asked 27/12, 2011 at 7:25
1
Solved
I found same question here but the answer doesn't help me.
I'm writing test app to use nglib library. But when I try to compile it I get undefined references:
$ g++ test1.cpp -L. -lnglib
test1.cp...
Godesberg asked 6/4, 2013 at 9:52
2
Solved
I always get
undefined reference to `Graph::InsertVertex(std::string)'
if I compile my project! Any hints why he cant resolve this reference?
(all Files are in the netbeans project fold...
Doloritas asked 16/2, 2013 at 19:18
2
Solved
gcc and CUDA question
Hi,
I have compiled a CUDA shared library but can't link it with the main program that uses it. I am compiling the main program with gcc.
The code:
simplemain.c
#include...
Euhemerism asked 20/1, 2013 at 5:16
2
Solved
I'm running..
gcc -c -I/usr/vt/sample ttssample.c
gcc -L. -lttsapi ttssample.o -o ttsample
and I'm getting the following error...
ttssample.o: In function `_TTSFile':
ttssample.c:(.text+0x352)...
Eos asked 26/12, 2012 at 14:41
1
Solved
I want to make available one of my c++ classes as Python module. The class is declared in a header Foo.h and implemented in a .cpp Foo.cpp.
(g++-4.5, Ubuntu x86_64). It's a very very simple class:...
Wallasey asked 23/10, 2012 at 8:40
2
Solved
I've seen several other posts that deal with this exact same issue. However, none of their solutions seem to work for me. I am compiling the following code:
#include <boost/numeric/ublas/matr...
Howard asked 30/11, 2012 at 21:21
1
Solved
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 t...
Garrett asked 18/11, 2012 at 21:29
1
Solved
The project structure below is a simplified example. I tried to boil it down to the minimal amount of files to reproduce my issue.
.
├── CMakeLists.txt
├── subdir1
│ ├── CMakeLists.txt
│ └── s...
Mauser asked 24/10, 2012 at 20:23
1
My C program uses some zlib functions (like gzopen, gzread). I have included the zlib.h header file in my program and added the -lz option when compiling, but I still get an error that the gz funct...
Glowing asked 4/2, 2012 at 22:29
2
Solved
My question has changed from the other one I have posted. I started out with multiple files and decided to put it all in one main.cpp file for now just to get it working.
main.cpp:
#include <i...
Reprint asked 8/9, 2012 at 2:58
4
Solved
I have the following code (stripped down to the bare basics for this question):
#include<stdio.h>
#include<math.h>
double f1(double x)
{
double res = sin(x);
return 0;
}
/* T...
Flux asked 15/2, 2011 at 15:9
1
Solved
I come here to ask for a fix to a situation that has been frustrating me. A lot.
First of all, I'm on Windows, I use MinGW as a compiler (C++).
I've been having some problems with getting a progra...
Rheumatoid asked 20/7, 2012 at 8:30
1
I am trying to work on operator overloading, my header file consists of:
#ifndef PHONENUMBER_H
#define PHONENUMBER_H
#include<iostream>
#include<string>
using namespace std;
class P...
Venterea asked 22/6, 2012 at 6:50
1
Solved
I am new to posix thread library, and I tried to compile a sample code from a tutorial with:
g++ -lpthread agreement.cpp -o agreement
however I was not able to compile the code and got the follo...
Musselman asked 20/6, 2012 at 0:22
2
Solved
I have three files . The contents of main.cpp are
#include<iostream>
#include<QString>
#include "util.h"
int main()
{
using Util::convert2QString;
using namespace std;
int ...
Hornbeck asked 17/5, 2012 at 8:32
1
I've spent quite a bit of time trying to get an expat based sample program to compile.
I was receiving the following error message when I tried to compile
gcc -Wall -lexpat line.c -o blah
line....
Regular asked 13/3, 2012 at 14:39
1
Solved
I wrote a program on Ubuntu 11.04 that uses freeglut. It worked fine. Then I got another computer and tried to run the program on a fresh install of Ubuntu 11.04. Doesn't work. So I installed
sudo ...
Oloroso asked 3/4, 2012 at 20:30
1
Solved
I'm pretty new to c++ and I'm having a problem debugging a linker error. I'm using wxDev-c++ with the g++ compiler. I've created a static library which I'm linking to a basic project. The library o...
Pool asked 25/11, 2011 at 19:28
6
Solved
Is there a sequence point between the two assignments in the following code:
f(f(x=1,1),x=2);
Candlewood asked 9/9, 2011 at 2:34
1
Solved
Am facing a problem that may be slightly complicated to explain and understand as giving the entire picture would be too big and difficult.
Please excuse me for it.
Consider the following Makefil...
Libratory asked 14/9, 2011 at 15:44
1
Solved
I'm using https://bitbucket.org/goshawk/gdc/downloads/gcc-4.5.2-tdm-1-gdc-r575-20110723.zip with TDM GCC 4.5.2 in -v2 mode to build a DLL. In one of the modules I do import std.stdint. So I thought...
Twinflower asked 1/8, 2011 at 21:24
© 2022 - 2024 — McMap. All rights reserved.