在线等~~关于C Free 5.0 编译与配置问题
代码:#include <iostream>
#include <stdlib.h>
int main()
{
std::cout << "hello world!";
system("PAUSE");
return 0;
}
编译结果:出错
--------------------配置: mingw5 - CUI Debug, 编译器类型: MinGW--------------------
正在编译 E:\Develop\C Plus Plus\g++ Projects\test.cpp...
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\include: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\include\c++\3.4.5: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\lib\gcc\mingw32\3.4.5\include: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\bin\: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\mingw32\bin\: No such file or directory
编译中止 E:\Develop\C Plus Plus\g++ Projects\test.cpp: 15 个错误, 0 个警告
请问:怎么解决,谢谢啦 小甲鱼,快快现身呀~帮我解决一下这个问题{:2_31:} 小甲鱼 发表于 2013-2-26 12:21 static/image/common/back.gif
C-Free是基于linux的G++编译器的。
pause指令是DOS和MSWINDOWS的一个SHELL命令而已,只是基于windows的暂 ...
谢谢甲鱼,我试试 michael_920307 发表于 2013-2-26 12:30 static/image/common/back.gif
谢谢甲鱼,我试试
#include <iostream>
int main()
{
std::cout << "hello world!";
return 0;
}这样还是不可以
错误是这样的:
--------------------配置: mingw5 - CUI Debug, 编译器类型: MinGW--------------------
正在编译 E:\Develop\C Plus Plus\g++ Projects\test.cpp...
E:\Develop\C Plus Plus\g++ Projects\test.cpp:7:2: warning: no newline at end of file
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\include: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\include\c++\3.4.5: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\lib\gcc\mingw32\3.4.5\include: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\bin\: No such file or directory
g++.exe: Files: No such file or directory
g++.exe: (x86)\C-Free: No such file or directory
g++.exe: 5\mingw\mingw32\bin\: No such file or directory
编译中止 E:\Develop\C Plus Plus\g++ Projects\test.cpp: 15 个错误, 1 个警告
我想是不是编译起配置的问题?? michael_920307 发表于 2013-2-26 12:32 static/image/common/back.gif
#include
int main()
素的呀,是不是编译器让杀软和谐了?No such file or directory michael_920307 发表于 2013-2-26 12:32 static/image/common/back.gif
#include
int main()
经测试表示无错误…… 小甲鱼 发表于 2013-2-26 14:13 static/image/common/back.gif
素的呀,是不是编译器让杀软和谐了?No such file or directory
甲鱼,你的系统是32位还是64位?? 刺骨之剑 发表于 2013-2-26 14:36 static/image/common/back.gif
经测试表示无错误……
系统是32位还是64位??? michael_920307 发表于 2013-2-26 16:29 static/image/common/back.gif
系统是32位还是64位???
跟系统几位无关,他这个是找不到文件,要么就是编译器配套的库文件安装不完整,要么是编译器被和谐啦。 小甲鱼 发表于 2013-2-26 12:21 static/image/common/back.gif
C-Free是基于linux的G++编译器的。
pause指令是DOS和MSWINDOWS的一个SHELL命令而已,只是基于windows的暂 ...
首先,纠正一下gcc与GNU有很大的关系,所以,gcc与linux的关系也很紧密,但是,不要说是基于linux的g++编译器,这句话说的太死了,stdlib.h头文件包含了system函数,这类函数的确可以执行一些shell,但是,后面linux不具备,这句话没有根据,讨论的是windows下的编译器的情况,c-free采用的编译器正确的是Mingw,而Mingw的核心是windows版移植的gcc or g++。“linux不具备”,你不觉得这个与问题的本质或者平台没有什么关联吧! Message_Box 发表于 2013-2-26 23:50 static/image/common/back.gif
首先,纠正一下gcc与GNU有很大的关系,所以,gcc与linux的关系也很紧密,但是,不要说是基于linux的g++编 ...
{:5_109:}哈哈,屌丝遇上专业户了~ 在windows环境建议用Codeblocks 把软件装到C盘试试吧,我的也是这个问题 我也是这个问题,不知道怎么解决
页:
[1]