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
Project files
Re: Project files
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.
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
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
-
- Posts: 45
- Joined: Mon Apr 23, 2012 9:31 am
Re: Project files
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
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
Re: Project files
no dont create the project from scratch, just remove main.cpp from the project and add the right one.
Re: Project files
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.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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 45
- Joined: Mon Apr 23, 2012 9:31 am
Re: Project files
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
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
Re: Project files
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm