使用g++时候出现错误!!!!(已解决!!)
发表于 : 2007-03-31 1:12
#include<iostream.h>
int main()
{
cout<<"Hello world!"<<endl;
return 0;
}
文件名为hello.cpp
使用g++ hello.cpp
之前已经安装了g++还有c++的库,可编译的时候出现错误,不明!!!!!
hello.cpp:1: error: stray ‘\357’ in program
hello.cpp:1: error: stray ‘\274’ in program
hello.cpp:1: error: stray ‘\203’ in program
hello.cpp:1: error: expected constructor, destructor, or type conversion before ‘<’ token
各位到底是怎么回事呢?????
int main()
{
cout<<"Hello world!"<<endl;
return 0;
}
文件名为hello.cpp
使用g++ hello.cpp
之前已经安装了g++还有c++的库,可编译的时候出现错误,不明!!!!!
hello.cpp:1: error: stray ‘\357’ in program
hello.cpp:1: error: stray ‘\274’ in program
hello.cpp:1: error: stray ‘\203’ in program
hello.cpp:1: error: expected constructor, destructor, or type conversion before ‘<’ token
各位到底是怎么回事呢?????