Errors when running Irrlicht Tutorial 1

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
Weng
Posts: 97
Joined: Tue Oct 03, 2006 4:23 pm
Location: Singapore

Errors when running Irrlicht Tutorial 1

Post by Weng »

Hi,

I am a beginner to using Irrlicht and game programming in general and am now studying tutorial 1 from the Irrlicht website. The software I use is Visual C++ 2005.

I followed the tutorial's steps but the compiler gave errors saying that it cant recognise the Irrlicht's namespaces and identifiers.

What I did is to create an empty project in vc++ 2005, then add a .cpp source file to the project.

I followed the tutorial's steps like setting up the IDE (set up the lib and header directories) and following the code step by step. Below is the code snippet which is added before the main function. The compiler is unable to recognise the namespaces below and all the subsequent identifiers in the main function.

#include <irrlicht.h>
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib,"Irrlicht.lib")

What is the cause of the errors? :?
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

You forget:
using namespace irr;
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

Put that at top of others "using...".
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
Weng
Posts: 97
Joined: Tue Oct 03, 2006 4:23 pm
Location: Singapore

Post by Weng »

I tried and it works.......thanks! :D

When I first ran the code, an error message appeared saying that it cant find the Irrlicht.dll file. So I copied Irrlicht.dll and Irrlicht.NET.dll files and pasted them into the directory of the vc++ project.

Now, there is a message saying "Debugging information for tutorial1.exe cant be found or does not match. Binary was not built with debug info. Do you want to continue debugging?" When I clicked the yes button, the program can run successfully.

What does the message mean and is it removable?
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

1. If you build your app with c++ then you need only irrlicht.dll.
2. Youll found out.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
AnTeevY
Posts: 6
Joined: Mon Dec 04, 2006 7:26 pm

Post by AnTeevY »

Hi,

I get the same "Binary was not built with debug info" Message in MSVS2005 und can run the project, but then I just see the "Hello World" message and gray background, no model :(

If I copile the project in the examples directory, I have no problems, so it seems I have to change something in the project settings, but what?

Thanks for help,

Aty
wildrj
Posts: 301
Joined: Thu Mar 23, 2006 12:49 am
Location: Texas/ Cyberspace
Contact:

Post by wildrj »

make sure the media file is in the progect path or you can just throw the model file in your progect folder.
AnTeevY
Posts: 6
Joined: Mon Dec 04, 2006 7:26 pm

Post by AnTeevY »

Oh, stupid mistake. But it looks different from the example project though, but wayne.

And what about the warning message? Can I ignore it?

Thanks.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

the warning means you cant debug inside the dll because it is compiled in release mode and doesn't have any debugging information insde (files are bigger with debug info inside)
if you want to debug inside irrlicht (set breakpoints and step through the code), unzip the source from source.zip, open the project file, select "Debug" from the Solution Configurations combo-box and click build.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply