简体   繁体   English

为什么我在执行 C++ 代码时出错

[英]why I'm getting error in executing my C++ code

I have installed MinGW 3 times and I've also added path in env.我已经安装了 MinGW 3 次,并且还在 env 中添加了路径。 variable but whenever I try to run a code in CodeLight it just gives me the following error:变量,但每当我尝试在 CodeLight 中运行代码时,它只会给我以下错误:

mingw-32-make.exe: *** [ALL] Error 2 mingw-32-make.exe: *** [ALL] 错误 2

In MinGW installation tutorials there are.exe files in the bin folder but I don't have any.exe file in the bin folder inside MinGW.在 MinGW 安装教程中,bin 文件夹中有 .exe 文件,但我在 MinGW 的 bin 文件夹中没有任何 .exe 文件。 I've tried installing it 3 and very carefully.我试过安装它 3 并且非常小心。

Can someone help me out?有人可以帮我吗?

Make sure the compiler and build tools are properly configured in the IDE (CodeLight).确保在 IDE (CodeLight) 中正确配置了编译器和构建工具。

Installing MinGW by itself doesn't tell CodeLight were to find it.单独安装 MinGW 并不能告诉 CodeLight 要找到它。

There is a standalone MinGW-w64 personal build available at http://winlibs.com/ that doesn't need installation, just unzip it.http://winlibs.com/有一个独立的 MinGW-w64 个人版本,不需要安装,只需解压即可。 On the site there is an explanation on he wot configure Code::Blocks IDE to use this compiler.在网站上有关于他 wot 配置 Code::Blocks IDE 以使用此编译器的解释。 The steps should be pretty similar in CodeLight.这些步骤在 CodeLight 中应该非常相似。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我的C ++代码出现错误! &如何在c ++中找到矩阵的行列式和逆矩阵? - I'm getting error in my c++ code! & How to find determinant and inverse of matrix in c++? 我在 TSP 的 C++ 解决方案中遇到转换错误 - I'm getting a conversion error in my C++ solution for TSP 为什么我的 C++ 代码中出现错误“预期类型名称”错误? - Why am I getting error ''Type name expected' error in my C++ code? 为什么我的 C++ 代码中出现“未声明的标识符”错误? - Why am i getting an "undeclared identifier" error in my c++ code? 为什么我在C ++代码中遇到此错误 - Why I am getting this error in c++ code 当我在 C++ 中运行我的函数时,为什么我的代码显示数字 53 - Why is my code displaying a number 53 when I'm running my functions in c++ 我刚刚开始使用 c++,但我在hackerRank 中遇到此代码错误 - I have just started c++ but I'm getting error in hackerRank for this code 知道为什么我的C ++程序会出现这两个错误吗? - Any idea why i'm getting these two errors in my c++ program? 为什么我会收到错误:当我尝试编译C ++代码时,在Eclipse中初始化'Item :: Item(int)'[-fpermissive]的参数1? - Why am I getting error: initializing argument 1 of 'Item::Item(int)' [-fpermissive] in Eclipse when I try to compile my C++ code? 当我的代码给出正确的 output 时,为什么会出现分段错误? - Why m I getting a segmentation error when my code gives correct output?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM