Posted January 30, 200520 yr sry if i start too much threads but its cuz all these diff compilers are pissing me off... ok, i downloaded MS VC++ last night off microsoft... i wrote this very simple program and tried runnin the program in MS VC++ #include <iostream.h> int main() { cout<<"Hello World!"; } this is wat it returned " Compiling... prog.cpp prog.cpp(8) : fatal error C1010: unexpected end of file while looking for precompiled header directive Build log was saved at "file://c:\Documents and Settings\Philip Li\My Documents\Visual Studio\Projects\prog\prog\Debug\BuildLog.htm" prog - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== " i did the same for my DEV C++ n there were no errors someone tell me whats wrong n try n help me fix the errors if u can
January 30, 200520 yr Try this code: #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } and see if you get the same error.
January 30, 200520 yr Author yeah i tried it...i usually put USING NAMESPACE STD; but seeing as how "asterix" might come into this thread...i thought maybe i should just do wat he says so he can keep his fucken mouth shut unless he has something useful to say =P
January 30, 200520 yr Actually its caused by having the /Yu switch on, and deleting a header/source from the project. KB: C1010 Error *EDIT* Try this, go to File->New->Project Create a new win32 console project. In the dialog box that comes up, click Application settings and select the Empty Project check box under Applicatin options. Now in the Solution Explorer right click the source folder and click Add->Add New File, and create a C++ file (name it say main.cpp). Now try writing your code and compiling, or better yet copy and paste my code from the last post. I use VC++ 2003, so you may have to adapt the instructions abit, but it should be too different.
January 30, 200520 yr Author thnx tat worked perfectly...a bit hard to addapt to but still ok..... the only thing about this compiler is tat it takes 5 seconds for the window to load up....in DEV C++ it does it in less then 1 second =S dunno y
January 31, 200520 yr form what it looks like to me.... the express edition beta is missing the iostream.h in its library. try manualy linking it...
January 31, 200520 yr Author not sure if it is, but wen i check the files in the "include folder", i see and IO.h-filetype: C HEADER FILE...i see an iostream-filetype:FILE dunno wats wrong....i can make simple programs since im used to using std namespaces but i cant get opengl to work...it doesnt even seem to have a windows.h 'W' 'T' 'F'?
January 31, 200520 yr Author YO WTF? MS VC++ is also missing a windows.h ???? W T F? and all the other includes for OpenGL
January 31, 200520 yr you think microsoft would ever give you a full program with everything you need?.. you have still much to learn young padawan :rolleyes:
January 31, 200520 yr Author lol windows is a very very basic file....most compilers should have it...i copied the windows.h from my DEV C++ to my MS VC++ n it still wont work...still says theres an error inside the windows.h itself
January 31, 200520 yr I think what you need is the Platform SDK. Microsoft's free compilers are normally geared toward Managed C++, rather than Standard C++.
January 31, 200520 yr Author lol stupid microsoft n their different C++...man y can't they make one free compiler tat has all the basic esentials
February 1, 200520 yr Well what can you expect from free software? Microsoft is trying to push .NET, so from a business stand point, providing only the .NET framework works. So it follows that providing the extra hundred megs of headers don't make sense just for C++ when all the other .NET languages just need the .NET Framework. If you bought the product you'd get all the standard windows' headers as well. As for opengl, their is a bunch of libraries you can download, SDL, GLUT, etc.
February 1, 200520 yr Author lol o well....ill just stick to normal C++ for awhile first...im trying to write my very simple yet really long game to see if i can make something witout a lot of errors
February 1, 200520 yr that's useless... :puke: I remembered when I just got variables with PHP I made a site with 13 variables and about 60 diffrent possebilities (when u type diffrent combinations and stuff)... damn I used alot of IF_ELSE constructions there hehehe..
February 1, 200520 yr Author lol use the SWITCH CASES much more effective n easier to use n less confusing switch ( variable ) { case 1: //w/e break; case 2: //w/e break; default: //optional break; }