eclipse+mingw 编译c++出错,请大神门帮我看看!!!
****RebuildofconfigurationDebugforprojectlearn_1********InternalBuilderisusedforbuild...
**** Rebuild of configuration Debug for project learn_1 ****
**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\learn_1.o ..\src\learn_1.cpp
In file included from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bitsar_traits.h:41,
from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/ios:41,
from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/ostream:40,
from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/iostream:40,
from ..\src\learn_1.cpp:9:
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h: In function ‘_OI std::__copy_move_a(_II, _II, _OI) ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:378: 错误:expected primary-expression before ? ?token
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:378: 错误: ?__is_trivial’的实参不依赖模板参数, ? ‘__is_trivial’的声明必须可用
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:378: 附注 ?如果您使用 ?-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是不建议使用的飚 ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:383: 错误: ?__simple’不能出现在常量表达式中
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:384: 错误:模板第 2 个参数无 ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h: In function ‘_BI2 std::__copy_move_backward_a(_BI1, _BI1, _BI2) ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:573: 错误:expected primary-expression before ? ?token
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:573: 错误: ?__is_trivial’的实参不依赖模板参数, ? ‘__is_trivial’的声明必须可用
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:578: 错误: ?__simple’不能出现在常量表达式中
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:579: 错误:模板第 2 个参数无 ?
Build error occurred, build is stopped
Time consumed: 1000 ms.
这个是什么错误呀啊````
bits/stl_algobase.h这个文件是mingw自己自带的,为什么还出现编译错误呢?
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!!!" << endl; // prints !!!Hello World!!!
return 0;
}
源码就这个刚配置的环境Eclipse+mingw 展开
**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\learn_1.o ..\src\learn_1.cpp
In file included from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bitsar_traits.h:41,
from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/ios:41,
from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/ostream:40,
from E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/iostream:40,
from ..\src\learn_1.cpp:9:
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h: In function ‘_OI std::__copy_move_a(_II, _II, _OI) ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:378: 错误:expected primary-expression before ? ?token
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:378: 错误: ?__is_trivial’的实参不依赖模板参数, ? ‘__is_trivial’的声明必须可用
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:378: 附注 ?如果您使用 ?-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是不建议使用的飚 ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:383: 错误: ?__simple’不能出现在常量表达式中
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:384: 错误:模板第 2 个参数无 ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h: In function ‘_BI2 std::__copy_move_backward_a(_BI1, _BI1, _BI2) ?
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:573: 错误:expected primary-expression before ? ?token
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:573: 错误: ?__is_trivial’的实参不依赖模板参数, ? ‘__is_trivial’的声明必须可用
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:578: 错误: ?__simple’不能出现在常量表达式中
E:\Mingw\lib\gcc\mingw32\4.6.1\include\c++/bits/stl_algobase.h:579: 错误:模板第 2 个参数无 ?
Build error occurred, build is stopped
Time consumed: 1000 ms.
这个是什么错误呀啊````
bits/stl_algobase.h这个文件是mingw自己自带的,为什么还出现编译错误呢?
#include <iostream>
using namespace std;
int main() {
cout << "Hello world!!!" << endl; // prints !!!Hello World!!!
return 0;
}
源码就这个刚配置的环境Eclipse+mingw 展开
3个回答
展开全部
说的是第9行,你贴的这个一共7行,怎么知道什么问题?
大多数是类型信息不完整引起的,少数编译器配置有问题。
from ..\src\learn_1.cpp:9:
大多数是类型信息不完整引起的,少数编译器配置有问题。
from ..\src\learn_1.cpp:9:
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我是来打酱油的,表里我。。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询