Can't Compile Tutorial 1 With Visual Studio Express 2005

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
netural_noise
Posts: 2
Joined: Mon Mar 24, 2008 11:14 am
Location: Australia

Can't Compile Tutorial 1 With Visual Studio Express 2005

Post by netural_noise »

Hi, I'm going though the Tutorials but i have only gotten to the end of the first one. When i compile it i get these errors...

Code: Select all

error C2065: 'EDT_SOFTWARE' : undeclared identifier
error C3861: 'createdevice': identifier not found
error C2065: 'IVideoDriver' : undeclared identifier
error C2065: 'driver' : undeclared identifier
Just some of them. Every time it calls on the Irricht Engine is creates an error.

I think that its not finding Irricht.lib with #pragma comment(lib, "Irrlicht.lib"), I added the lib folder to VC++ directories as well as the include folder. I may have missed something.

I had a look on the forums for topic about this but failed. Tho i may have over looked it.

Any help will be good, even a nudge in the right way for a fix will be good.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Try

Code: Select all

 using namespace irr;
 using namespace core;
 using namespace scene;
 using namespace video;
 using namespace io;
 using namespace gui;
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Re: Can't Compile Tutorial 1 With Visual Studio Express 2005

Post by rogerborg »

netural_noise wrote:Hi, I'm going though the Tutorials but i have only gotten to the end of the first one. When i compile it
What is "it"? Are you talking about examples/01.Helloworld/main.cpp or your own code?

If you're having problems with your own code, can you compile any of the examples successfully?

netural_noise wrote: i get these errors...

Code: Select all

error C2065: 'EDT_SOFTWARE' : undeclared identifier
error C3861: 'createdevice': identifier not found
error C2065: 'IVideoDriver' : undeclared identifier
error C2065: 'driver' : undeclared identifier
"createdevice"? The Irrlicht entry point function is createDevice(), capital D. Actually, it's irr::createDevice().

EDT_SOFTWARE and IVideoDriver also need qualified by their namespaces, as MasterGod said.

Again: what code are you actually compiling here? If it's your own code, then I suggest that you just post the code here.

netural_noise wrote:I think that its not finding Irricht.lib
Those are compilation errors, not link errors.

Hang in there, we'll get you over this hurdle.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
netural_noise
Posts: 2
Joined: Mon Mar 24, 2008 11:14 am
Location: Australia

Post by netural_noise »

:oops: I forgot the name spaces. I miss read the Docs and thought that

using namespace irr;

added all those in.

I was talking about the first tutorial, the hallo world one. I was really tied when i wrote that post.

As for createDevice. That was just a type-o and has been fixed :D.

As you might have guessed im not to good at reading errors and what they mean.

Thanks for your help.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

The pain will teach you. ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
FlyerZone21
Posts: 2
Joined: Sun Jun 15, 2008 7:59 pm
Location: NC

Post by FlyerZone21 »

I am having a similar problem with the Tutorial.

My problem is with the directions:

"If you use Version 6.0, select the Menu Extras -> Options. Select the directories tab, and select the 'Include' Item in the combo box. Add the \include directory of the Irrlicht Engine folder to the list of directories. Now the compiler will find the Irrlicht.h header file. We also need the location of irrlicht.lib to be listed, so select the 'Libraries' tab and add the \lib\VisualStudio directory."

I'm using VS C++ Express 2005, I've used it before, but not often. In fact, I have done C++ for a couple of years. And when I did do C++, it was in a UNIX environment. So my experience with Visual Studio is slim.

I don't see a "Menu Extras", and when I look in Options I don't see anything about directories or libraries.

I put the header file into the Header Files folder of the project I made, but that doesn't seem to work.

My only error:

"fatal error C1083: Cannot open include file: 'irrlicht.h': No such file or directory"

Any help would be appreciated.
Jgoldnight
Posts: 31
Joined: Thu Jun 07, 2007 6:23 pm
Location: New York
Contact:

Post by Jgoldnight »

Tools -> Options -> Projects and Solutions.
Computer scientist by day...
http://www.mrjoelkemp.com
Post Reply