Project files

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Quantum1982
Posts: 45
Joined: Mon Apr 23, 2012 9:31 am

Project files

Post by Quantum1982 »

Hi

If I have 2 separate solutions, one is called ProceduralBox, and the other Shaders, how is it possible for the IDE to get confused about the "main" cpp file ?

When I open the Shaders solution, it opens the "main" file from the ProceduralBox solution. But there is no connection between these 2 solutions ?

Also, when you go into the release folder for each solution, it runs the correct executable. How it this ?

Cheers
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Project files

Post by REDDemon »

probably you project file is compiling the file in correct way but when debugging is running the wrong executable. Can happen when you duplicate project files for keep same settings/import/headers.

Take a look at how paths are setted for your project and think to what is their meaning. Know how to use your IDE is always good idea.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Quantum1982
Posts: 45
Joined: Mon Apr 23, 2012 9:31 am

Re: Project files

Post by Quantum1982 »

Thanks for the reply

That is actually what happened. I copied and pasted the folder to keep the same settings, and I got punished !

So now I deleted the "Shaders" folder and created a new project from scratch called "MazeGame"

Even after setting the correct include and link paths, I am getting a linker error saying it cannot find irrlicht.lib. I know it has to do with the fact that it cannot find the irrlicht.dll file. That file should be in the release folder, but there is no release folder as yet, like there is with "ProceduralBox" solution.

Cheers
gerdb
Posts: 194
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Re: Project files

Post by gerdb »

no dont create the project from scratch, just remove main.cpp from the project and add the right one.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Project files

Post by CuteAlien »

Quantum1982 wrote: Even after setting the correct include and link paths, I am getting a linker error saying it cannot find irrlicht.lib. I know it has to do with the fact that it cannot find the irrlicht.dll file.
No, if says it can't find the .lib file it doesn't miss the .dll but the .lib file. On Windows lib files are used at link time and dll's are used at runtime. Which means dll's don't matter at all during linking, but only once the program runs.

Which IDE are you using?
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
Quantum1982
Posts: 45
Joined: Mon Apr 23, 2012 9:31 am

Re: Project files

Post by Quantum1982 »

Thanks for the reply.

I solved this issue by just creating new projects from now on and not coping and pasting them. It causes all sorts of problems. I found the .lib file by downloading the sdk again. I got confused between an exports file and a dll.

Cheers
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Project files

Post by CuteAlien »

Copy-pasting is usually mostly fine. You just have to be careful when relative paths need to be changed. And you should always set a new GUID as having the same GUID in 2 projects can lead to some trouble.
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