compiling my program beginner here

can i know what is wrong with my compiler? any hep will be greatly appreciated!


--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
c:\documents and settings\dancel\vc98\include\exception(1) : error C2143: syntax error : missing ';' before '/'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(2) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(3) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : error C2018: unknown character '0xff'
c:\documents and settings\dancel\vc98\include\exception(4) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

Cpp1.exe - 102 error(s), 0 warning(s)
What does that file look like? (exception). Looks like it might be corrupted.
thanks for the reply. by the way what do you mean what the file looks like? and how would you be able to say its corrupted.
#include <iostream>
using namespace std;

int main()
{
cout<<"hi";

return 0;
}




it was as simple as this yet the compiler keeps giving me the same errors i have also tried using iostream.h but it also has an error


--------------------Configuration: Cpp3 - Win32 Debug--------------------
Compiling...
Cpp3.cpp
c:\documents and settings\dancel\vc98\include\ios.h(254) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.

Cpp3.obj - 1 error(s), 0 warning(s)

I think it would be obvious if it was corrupted. Just look at the contents of the file by opening it in the IDE or in WordPad
or Notepad or something. Also, ios.h. You should not be getting compile errors in standard header files.
what should i do then, any ideas?
i cannot pass my project because of this...
I'd reinstall VC++.

-Albatross
Absolutely, reinstall.
It's definately a compiler problem, since I dont see anything wrong with the code..

So yeah reinstall :)

Cheers!
Topic archived. No new replies allowed.