Hi!
I just ran into a problem then I should compile my first OGRE project..
Then I use the SetupResources() (no errors/warnings in the code) the program crashes at runtime, and if I delete it it works... why?
Is this a bug?
What's wrong with SetupResources()?
- DaCracker
- Gremlin
- Posts: 192
- Joined: Thu Jan 27, 2005 9:57 am
- Location: Sweden
- Contact:
-
- Google Summer of Code Student
- Posts: 228
- Joined: Mon Mar 17, 2003 12:02 am
- Location: San Jose, CA, USA
- DaCracker
- Gremlin
- Posts: 192
- Joined: Thu Jan 27, 2005 9:57 am
- Location: Sweden
- Contact:
- sinbad
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
- Contact:
- DaCracker
- Gremlin
- Posts: 192
- Joined: Thu Jan 27, 2005 9:57 am
- Location: Sweden
- Contact:
- sinbad
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
- Contact:
Then you haven't got your paths set up correctly.
In the 'Debugging' section of your project properties, you have to set the 'Command' and 'Working Directory' to the place where all the debug binaries and .cfg files are, in the ogre samples this is already set up for you. 'Command' needs to point at the exe, 'Working Directory' at the folder.
I can't help but observe that you don't really know how to use your C++ tools yet. You really should familiarise yourself with the process of compiling, debugging, using MSVC etc before you tackle Ogre, and especially before you start your own separate project using it. Start with a sample and work up from there. C++ is not particularly simple, and Ogre is not a particularly simple C++ project. So you really will need to get up to speed & comfortable with your tools, especially before crying 'Bug!'
In the 'Debugging' section of your project properties, you have to set the 'Command' and 'Working Directory' to the place where all the debug binaries and .cfg files are, in the ogre samples this is already set up for you. 'Command' needs to point at the exe, 'Working Directory' at the folder.
I can't help but observe that you don't really know how to use your C++ tools yet. You really should familiarise yourself with the process of compiling, debugging, using MSVC etc before you tackle Ogre, and especially before you start your own separate project using it. Start with a sample and work up from there. C++ is not particularly simple, and Ogre is not a particularly simple C++ project. So you really will need to get up to speed & comfortable with your tools, especially before crying 'Bug!'
- DaCracker
- Gremlin
- Posts: 192
- Joined: Thu Jan 27, 2005 9:57 am
- Location: Sweden
- Contact:
- DaCracker
- Gremlin
- Posts: 192
- Joined: Thu Jan 27, 2005 9:57 am
- Location: Sweden
- Contact:
You can at least use the debug mode if you use Dev-C++ (that uses MingW)
(http://www.bloodshed.net/dev/devcpp.html)
(http://www.bloodshed.net/dev/devcpp.html)