Error in making application in Visual Studio

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
Kojima Pro
Posts: 15
Joined: Wed Oct 08, 2008 11:29 pm

Error in making application in Visual Studio

Post by Kojima Pro »

Hi, I am jeremy and i just started in useing c++ and am not getting why every time i try to make something i always get errors when i type the exact thing that this 1 tutorial tells me to.

Can sombody help me? Do i have to do more configuring to Visual Studio?

Please help me i really want to know.
MasterM
Posts: 128
Joined: Sat Oct 20, 2007 2:38 am
Location: netherlands antilles, Curacao

Post by MasterM »

What does the errors say? and i am pretty sure your not linking it correctly...
C++ is not the Magdalena...it takes patience...shes like the well aged prostitute, it takes years to learn her tricks! she is cruel...laughs at you when you are naked...
Life of a programmer == Const abuse
Kojima Pro
Posts: 15
Joined: Wed Oct 08, 2008 11:29 pm

Post by Kojima Pro »

Compiling...
main.cpp
c:\documents and settings\jerry\my documents\visual studio 2008\projects\hello world\hello world\main.cpp(4) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory
Build log was saved at "file://c:\Documents and Settings\Jerry\My Documents\Visual Studio 2008\Projects\Hello world\Hello world\Debug\BuildLog.htm"
Hello world - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


This is the error. I always get a error i don't know what im doing wrong and here is what i typed:

/* Hello world Program
Written by Me */

#include <iostream.h>

int main()
{
cout <<"Hello World"; //says hello world
system("PAUSE");
return(0);
}


Oh i see i say's: ": fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory"

But how do i resolve this problem?
Kojima Pro
Posts: 15
Joined: Wed Oct 08, 2008 11:29 pm

Post by Kojima Pro »

oooooooooo i got it to work, all i did was put a namespace underneith and got rid of "<iostream.h> and changed it to

#include <iostream>
using namespace std;

then it worked! finnaly! i got something to work!
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Hey, great! You should try to get into the habit of Googling as you go in order to find out why things work. :)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Kojima Pro
Posts: 15
Joined: Wed Oct 08, 2008 11:29 pm

Post by Kojima Pro »

I did try googleing lol, thats why im here because i didnt find anything but i did try a little harder and thats how i found out what to do but thats a great link you provided thanks!
Post Reply