undefined-reference Questions
6
Solved
I'm trying to make a simple fibonacci calculator in C but when compiling gcc tells me that I'm missing the pow and floor functions. What's wrong?
Code:
#include <stdio.h>
#include <math....
Merchantman asked 29/12, 2011 at 17:50
3
I'm learning SDL through Lazy Foo's tutorial, but I can't proceed further as IMG_Load doesn't seem to work. I tried setting it up like he says, but it just doesn't work. I put all the include files...
Jit asked 17/7, 2013 at 14:10
5
Solved
I have this simple code:
max = (int) sqrt (number);
and in the header I have:
#include <math.h>
But application still says undefined reference to sqrt. Do you see any problem here? It l...
Overscore asked 9/3, 2011 at 16:32
4
Solved
I have a trivial program to test for availability of python development files:
#include<Python.h>
int main(){Py_Initialize(); Py_Finalize(); }
I compile it (with python 2.7 installed) as g...
Meneau asked 19/12, 2012 at 11:14
3
Solved
I've been messing with using RapidXML on one of my projects. It was all going so well until I decided to use it for writing out xml. My code is more or less as follows:
//attempt to open the file ...
Desdemona asked 1/1, 2013 at 20:24
2
Today I have read an article about GCC Undefined Behavior Sanitizer (ubsan). However, when I follow steps there (add -fsanitize=undefined to my code), the compiler (GCC 4.9.2 on Ubuntu 15.04) says ...
Highkeyed asked 4/8, 2015 at 7:57
3
I'm trying to make a file in Ubuntu and when i make i keep getting this error:
/usr/bin/ld: ../../gtest-1.7.0/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2...
Spectrohelioscope asked 2/9, 2014 at 7:17
1
I have been working on the problem set speller for the last days and so far this is what I have. Unfortunately, it does not compile and I am a bit lost. I would be really grateful if somebody...
Downpipe asked 14/9, 2018 at 13:47
3
Solved
I can't seem to get the errors to go away. The errors are below. I have looked on Google Search and still I can't figure it out. It is not like I am new to C++, but I have not fooled around with it...
Dashboard asked 8/8, 2011 at 5:57
5
Solved
Following example from this link: http://developer.kde.org/documentation/books/kde-2.0-development/ch03lev1sec3.html
#include <QObject>
#include <QPushButton>
#include <iostream>...
Bismuthinite asked 2/5, 2011 at 7:41
4
Solved
I'm trying to compile my project and I use the lib ncurse. And I've got some errors when compiler links files.
Here is my flags line in Makefile:
-W -Wall -Werror -Wextra -lncurses
I've include...
Veinlet asked 24/4, 2013 at 12:29
4
Solved
I've turned a couple of resource files into .obj files using objcopy and i link them with my programs source code.
I can very well access the symbols inside the object file in my program with the f...
Major asked 21/11, 2017 at 13:42
3
Solved
g++ -fopenmp main.cpp complains about undefined reference to std::vector. How to fix this?
I have installed the libomp-dev package on Ubuntu.
main.cpp
#include<vector>
#include<iostream...
Arbitrage asked 10/5, 2017 at 18:55
2
Solved
I found a number of similar questions (e.g. this, that or this), but none of them helped me solve my problem. I have a *.so file (from the core of gnss-sdr) that, as indicated by:
$nm libgnss_syst...
Dardan asked 6/4, 2017 at 13:20
2
Solved
I would like to compile this.
program.c
#include <libavcodec/avcodec.h>
int main(){
int i = avpicture_get_size(AV_PIX_FMT_RGB24,300,300);
}
Running this
gcc -I$HOME/ffmpeg/include pro...
Teddy asked 15/3, 2014 at 16:35
2
I am playing around with using Semaphores, but I keep encountering Undefined Reference warnings, thus causing my code not to work. I pulled example code from a text, but was having issues with some...
Lamb asked 9/5, 2014 at 3:16
3
Solved
I'm trying to compile the following minimal C code on ubuntu 10.10:
#include <sys/capability.h>
void main(void)
{
cap_t cap;
cap = cap_get_proc();
}
with gcc -lcap test.c which gives me...
Lanyard asked 1/12, 2011 at 8:27
2
Solved
I'm using Code Blocks IDE and I want to install Tiled Map Editor for SFML. So, I downloaded the source and imported it to my project. Unfortunately, the build finished with an error due to missing ...
Bernadette asked 15/12, 2013 at 10:17
2
I'm trying to fix an undefined reference to memcpy_s() error. I've included string.h in my file and the memcpy() function works okay, and I've also tried including memory.h. I'm on x64 Windows 7 an...
Hydraulics asked 7/7, 2015 at 19:59
1
I can't get the additional libraries I am working with to link into my project properly.
I am using CLion, which uses cmake to build its projects. I am trying to use several libraries in conjunctio...
Heartfelt asked 20/9, 2016 at 15:37
3
Solved
I am using crypto++ in c++ linux.
Here is my simple code:
#include <iostream>
#include <fstream>
#include <string.h>
#include "crypto++/cryptlib.h"
#include "crypto++/modes.h"
#...
Kilar asked 21/7, 2012 at 9:28
1
Solved
I am trying to compile my C++ project on Linux x64 with boost libraries 1.57.
This project is compiled with scons and I successfully compiled it on my Arch Linux, but this time failed on a Ubuntu ...
Rondure asked 1/12, 2015 at 23:1
3
Solved
I have a build error with a slot in Qt. I have an class which has a public slot:
void doSomething();
In constructor of this class i do:
this->connect( ui->textFrom, SIGNAL(returnPressed()...
Excurvature asked 15/7, 2009 at 19:53
2
Solved
i'm trying to get SFML 2.1 to work with MingW, but it's causing problems.
my compile line in the MingW compiler is:
g++ -ID:\SFML-2.1\include -LD:\SFML-2.1\lib main.cpp -lsfml-graphics -lsfml-win...
Moy asked 5/1, 2014 at 14:53
1
I am building using Eclipse Kepler, and have included math.h. However, I am getting an error
'undefined reference to log10'.
Also types uint8_t and unit32_t are not being resolved. I have inc...
Duple asked 14/7, 2015 at 9:47
© 2022 - 2024 — McMap. All rights reserved.