Now I am trying to compile a source file myself.
Here's my source code, which is pretty simple:
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()
{
IrrlichtDevice *device = createDevice(video::EDT_OPENGL, dimension2d<u32>(640, 480), 16, false, false, false, 0);
device->drop();
return 0;
}
Code: Select all
main: main.cpp
g++ -L/usr/irrlicht-1.7.2/lib/Linux -I/usr/irrlicht-1.7.2/include -llibIrrlicht.a main.cpp -o test
clean:
rm test
Code: Select all
g++ -L/usr/irrlicht-1.7.2/lib/Linux -I/usr/irrlicht-1.7.2/include -llibIrrlicht.a main.cpp -o test
/usr/bin/ld: cannot find -llibIrrlicht.a
collect2: ld returned 1 exit status
make: *** [main] Error 1