Dev-C++...improve workflow

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
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Dev-C++...improve workflow

Post by luckymutt »

I have it working ok, however, according to the article on setting it up, it decribes going to project->project options to point it to the include files and the linkers.
I gonna hate doing this each time I start a new project, so I want to just drop these files where Dev-C++ will have it all the time.
Is there a way to permanently set these options, or can I copy all of those files into Dev-C++'s "include" and "lib" folders?

Under Tools->Compiler Options, I saw how I add a path to the IrrLicht "include" folder, but I can't seem to find the right place for :
libIrrlicht.a
libjpeg.a
zlib.a

I tries adding the path to the Libraries tab under Tools->Compiler Options, but it doesn't work. I still get linking errors.

Does this make sense?

Thanks,
Michael
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Re: Dev-C++...improve workflow

Post by metalseb »

luckymutt wrote:Is there a way to permanently set these options, or can I copy all of those files into Dev-C++'s "include" and "lib" folders?
Yes, you can but to keep things clear, I suggest you to create some subdirs in both libraries and include DevC++ directories. All you have to do then is to setup DevC++ this way : go to the Tools menu option then compiler option and enter the subdirs name in lib and include tabs. There's a button to browse the disk.

Then, you still have linker errors because you don't tell DevC++ to link the correct libraries. In you project window, on the left, right-click the project name, then project options. Parameters tab, linker list, add : -lIrrlicht -ljpeg -lzlib and it should compile fine.

Regards

Seb
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Yeah, I was getting the linking errors.
In you project window, on the left, right-click the project name, then project options. Parameters tab, linker list, add : -lIrrlicht -ljpeg -lzlib and it should compile fine.
--so this has to be done with each project? Can't be set permanently?
Oh, well.
metalseb
Posts: 15
Joined: Tue Mar 01, 2005 8:50 am
Location: Lille - France
Contact:

Post by metalseb »

luckymutt wrote:--so this has to be done with each project? Can't be set permanently?
:shock:

Get yourself by hand, dude :wink:

Tools menu entry, compiler options. Check "Add these commands to the linker line" and enter -lIrrlicht -ljpeg -lz and the settings will be permanent for all of your projects.

Well, one question out there : If you have such difficulties in proprely setting up a compiler environment using a very simple IDE like DevC++, how could you expect doing and understanding anything else ?

You know, for ground-zero newbies starting with realtime 3D engines is *really* not the right way to understand anything about C++ and programming in general...
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

Well, one question out there : If you have such difficulties in proprely setting up a compiler environment using a very simple IDE like DevC++, how could you expect doing and understanding anything else ?
I'm new to the Dev-C++ IDE, and all I had seen on configuration was to add those per project
You know, for ground-zero newbies starting with realtime 3D engines is *really* not the right way to understand anything about C++ and programming in general...
well, y'know, nothing like jumping right in the fray.
more seriously, I do a great deal of modeling, and I wanna use this engine for what I'll just call an "art project." nothing terribly intense coding-wise, but still, I'll prolly a have a "dumb" question or two along the way.
This is why I'm posting in the Beginner's Help forum.

Thanks for the tip.
Peace.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Just make a template, that you can use for new projects !!!

Menu: File->New->Template

CU, Acki
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply