Static Linking under Dev C++

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
t0rt0r0
Posts: 76
Joined: Fri May 22, 2009 11:02 am

Static Linking under Dev C++

Post by t0rt0r0 »

Hi all !

Has anyone have a template project for dev c++ with irrlicht 1.5 static linked ? (no more .dll but I think you know that ;))

Because I can't make it to work and really don't see why :oops: (I've searched on the forum / Internet and see how it should be done but something is wrong ... :()

thanks a lot and sorry for bad english ;)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

how did you try ???
remember you'll need to recompile Irrlicht as a static lib for this... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
t0rt0r0
Posts: 76
Joined: Fri May 22, 2009 11:02 am

Post by t0rt0r0 »

Yes I've taken the dev-c++ project in /source of the irrlicht 1.5 pack and recompiled it in a static way (in project options and with modified header (don't remember yet, sounds like _IRR_COMPILE_...)).

This gives me an .a file, about 14meg if IRC

After I link this .a in my project and compile, done but if I remove the .dll program crash :/
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

t0rt0r0 wrote:Yes I've taken the dev-c++ project in /source of the irrlicht 1.5 pack and recompiled it in a static way (in project options and with modified header (don't remember yet, sounds like _IRR_COMPILE_...)).

This gives me an .a file, about 14meg if IRC
sounds correct...
did you use the "modified header" ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
t0rt0r0
Posts: 76
Joined: Fri May 22, 2009 11:02 am

Post by t0rt0r0 »

You mean in my project headers ?

Don't remerber yet, I'll check out this morning
t0rt0r0
Posts: 76
Joined: Fri May 22, 2009 11:02 am

Post by t0rt0r0 »

Can't believe it ! It was that ...

I'm so uggly :/


Thanks a lot Acki ;)
Now my game can come out soon ^^ (give me a month =))
Post Reply