Linker error
Posted: Sun Nov 01, 2009 8:07 pm
I'm Adam and that is my fist post here.
Hello
I tried compile very easy program that doing nothing to test compiler:
I got tons of errors from linker:
I don't know what is wrong.
I tried using 1.5.1 and 1.6 version of Irrlicht, still same errors.
Hello
I tried compile very easy program that doing nothing to test compiler:
Code: Select all
#include "irrlicht.h"
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main()
{
createDevice( video::EDT_OPENGL, dimension2d<u32>(640, 480), 16, false, false, false, 0);
return 0;
}
Code: Select all
g++ -c -g -I/home/adam/Libraries/irrlicht-1.6/include -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp
mkdir -p dist/Debug/GNU-Linux-x86
g++ -o dist/Debug/GNU-Linux-x86/irrlicht_nauka build/Debug/GNU-Linux-x86/main.o -L/home/adam/Libraries/irrlicht-1.6/lib/Linux /home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `irr::CIrrDeviceLinux::initXAtoms()':
/home/adam/Desktop/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1787: undefined reference to `XInternAtom'
/home/adam/Desktop/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1788: undefined reference to `XInternAtom'
/home/adam/Desktop/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1789: undefined reference to `XInternAtom'
/home/adam/Desktop/irrlicht-1.6/source/Irrlicht/CIrrDeviceLinux.cpp:1790: undefined reference to `XInternAtom'
/home/adam/Libraries/irrlicht-1.6/lib/Linux/libIrrlicht.a(CIrrDeviceLinux.o): In function `irr::CIrrDeviceLinux::copyToClipboard(char const*) const':
(...)
I tried using 1.5.1 and 1.6 version of Irrlicht, still same errors.