Page 1 of 1

Irrlicht cannot start on VC++ 2008[SOLVED]

Posted: Fri Jul 31, 2009 1:26 am
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;

Posted: Fri Jul 31, 2009 1:55 am
by smag4life
Make sure Irrlicht.dll is in the same directory as your executable and that should fix you right up.

-AJ

Crap>_<

Posted: Fri Jul 31, 2009 4:00 am
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.

Found the problem

Posted: Fri Jul 31, 2009 4:10 am
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.

Posted: Fri Jul 31, 2009 4:12 am
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

Posted: Fri Jul 31, 2009 5:04 am
by WideWhaleEnter
http://www.youtube.com/watch?v=0YSijuLuoPs

or you can just do this which i forgot to do lol

Visual Studion 2008 not working

Posted: Fri Jul 31, 2009 11:19 pm
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.

Still not working

Posted: Sat Aug 01, 2009 12:36 am
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 ==========

AWESOME THANKS

Posted: Sat Aug 01, 2009 12:54 am
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.