lrrlicht linking with g++

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Pythy Python
Posts: 30
Joined: Sun Mar 29, 2015 1:31 am

lrrlicht linking with g++

Post by Pythy Python »

I'm new to lrrlicht engine and i'm trying to compile my code with g++.

this is what I did,

Code: Select all

g++ -std=c++11 main.cpp -o main.exe -L/include
and i'm getting an error that says "undefined reference to: imp_createDevice"

I know that this is a linking error but I don't know what I did wrong. Does anyone know how to fix this?
Pythy Python
Posts: 30
Joined: Sun Mar 29, 2015 1:31 am

Re: lrrlicht linking with g++

Post by Pythy Python »

SOLVED.

Please, why the heck irrlicht.h is lowercase and Irrlicht.dll is uppercase? it took me a day to figure this out.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: lrrlicht linking with g++

Post by CuteAlien »

Interesting question, I never noticed :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply