Irrlicht cannot start on VC++ 2008[SOLVED]

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
SilentScope2190
Posts: 5
Joined: Sun Jul 26, 2009 12:44 am

Irrlicht cannot start on VC++ 2008[SOLVED]

Post by SilentScope2190 »

A few problems that i am facing after updating to VC++ 2008

i made a new console game project to start a game, i set up the IDE VC++ 2008 to look for my library files and everything like the irrlicht manual says. but some ugly messages pop out saying "The application cannot start because irrlicht.dll was not found" or something else. i don't know if its a code error or IDE error.

when i compile nothing comes up, i tried fixing or changing my code but an error message box comes up saying link error 104:cannot find irrlicht .lib or sometimes irrlicht.dll,or sometimes compiles but nothing shows up. or a message saying that cout is not defined even though it was.Now yes i am not an expert on irrlicht but before this happened i was doing well tweaking my games.This is just a basic code that i tried. Does it mean that irrlicht is not compatible with VC++ 08

Code: Select all

 
#include <irrlicht.h>
#include <iostream>

using namespace irr;
using namespace std;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif

int main()
{      cout<<"hello world"<<endl;
	return 0;
Last edited by SilentScope2190 on Sat Aug 01, 2009 12:46 am, edited 1 time in total.
smag4life
Posts: 4
Joined: Wed Jul 29, 2009 12:35 am
Location: New London, CT

Post by smag4life »

Make sure Irrlicht.dll is in the same directory as your executable and that should fix you right up.

-AJ
WideWhaleEnter
Posts: 4
Joined: Mon Jul 27, 2009 11:21 pm
Location: Waterford, MI USA

Crap>_<

Post by WideWhaleEnter »

hmmm same problem still not solved..

i copied the include from the sdk into the same directory as my VC ++ project folder still getting build errors saying file you are including is not in the directory. But with Visual Studios 2008 you add headers by right clicking on the headers folder on the left and add exsisting i added it then did the

#include "irrlicht.h"

in my source code still not working. Im about to say screw it and switch to a different IDE because this ones making me mad.
"I grew up a mother F**king screw up!"
- Biggie Smalls
"If you were ready to make a 3D MMORPG, you wouldn't be asking here".
-BlindSide
WideWhaleEnter
Posts: 4
Joined: Mon Jul 27, 2009 11:21 pm
Location: Waterford, MI USA

Found the problem

Post by WideWhaleEnter »

Copy and paste all the includes from irrlicht's sdk folder into

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Include if you have Visual Studios 2008.

It fixed the problem and I think I am still going to switch to maybe codeblocks IDE because I can see the debugger is going to annoy the poop out of me.
"I grew up a mother F**king screw up!"
- Biggie Smalls
"If you were ready to make a 3D MMORPG, you wouldn't be asking here".
-BlindSide
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You do not want to do that. If you are creating a project, I suggest you open one of the example programs and modify it as necessary.

Travis
WideWhaleEnter
Posts: 4
Joined: Mon Jul 27, 2009 11:21 pm
Location: Waterford, MI USA

Post by WideWhaleEnter »

http://www.youtube.com/watch?v=0YSijuLuoPs

or you can just do this which i forgot to do lol
"I grew up a mother F**king screw up!"
- Biggie Smalls
"If you were ready to make a 3D MMORPG, you wouldn't be asking here".
-BlindSide
SilentScope2190
Posts: 5
Joined: Sun Jul 26, 2009 12:44 am

Visual Studion 2008 not working

Post by SilentScope2190 »

K i will try to set visual studio by adding irrlicht.dll to my executables folder.
as of using the examples folder i did it before but idk there must be a way to avoid that since later i would have to deal with deleting all the other irrlicht files.
SilentScope2190
Posts: 5
Joined: Sun Jul 26, 2009 12:44 am

Still not working

Post by SilentScope2190 »

I checked the video out its really explanatory except that there is one issue.when i include the .dll files visual studio compiles but then it quits instantly i tried pausing the system with code but it still quits.

here is an error message

Code: Select all

LINK : ..\..\bin\Win32-VisualStudio\01.HelloWorld.exe not found or not built by the last incremental link; performing full link
Embedding manifest...
Build log was saved at "file://c:\Documents and Settings\USER\My Documents\Visual Studio 2008\Projects\game\Debug\BuildLog.htm"
01.HelloWorld_vc9 - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
SilentScope2190
Posts: 5
Joined: Sun Jul 26, 2009 12:44 am

AWESOME THANKS

Post by SilentScope2190 »

I finally fixed it.What happened was that the hello World Sample has another file named 01. Hello World Incremental linker file. if you set up visual studio like in the video above after you add the .dll file you must right click on the solution explorer and click properties.change the tools to CUSTOM BUILD Tools and then it should work. I also changed my code to the second example from the quake map tutorial since it doesn't have an incremental linker file.Thank you so much you guys are awesome.Great video by the way.
Post Reply