此程序在windows下的dev-c++编译通过了,在ubuntu中g++编译时报错:
‘strcmp’在此作用域中尚未声明
( 已经写了#include <string> 和 using namespace std; )
[求助] 本人是新手 求助 一个 g++ 编译错误
-
- 帖子: 68
- 注册时间: 2009-01-09 1:04
-
- 帖子: 3182
- 注册时间: 2006-03-10 15:10
- 来自: xi'an China
- 联系:
Re: [求助] 本人是新手 求助 一个 g++ 编译错误
strcmp 在头文件 cstring 中,你包含 string 有什么用??funny8 写了:此程序在windows下的dev-c++编译通过了,在ubuntu中g++编译时报错:
‘strcmp’在此作用域中尚未声明
( 已经写了#include <string> 和 using namespace std; )