代码块,添加了环境变量路径,但在安装文件夹之外出现 g++ 错误
CodeBlocks, environment variables path added, but g++ error outside the installation folder?
我刚刚安装了CodeBlocks来编译c ++程序,安装它的路径是,
C:Program FilesCodeBlocksMinGWbin
我还将此路径添加到环境变量路径中,
g++ 命令在此文件夹内的命令提示符下工作正常,
g++: fatal error: no input files
compilation terminated
但是当我在这个文件夹之外给出 g++ 命令时,它给了我一个错误,
'g++' is not recognized as an external or internal command,
operable program or batch file
我的问题是,为什么即使我添加了环境变量的路径,我也会收到此错误?
您可能添加了错误的路径。
相关文章:
- 如何将更多文件夹添加到c++include路径
- GetShortPathName在网络驱动器上使用中文文件夹时失败
- VS2017,C++包含目录与附加包含目录,子文件夹包含失败-但为什么
- 在 Windows 上,是否可以让 dll 在不使用 PATH 环境变量的情况下在另一个文件夹中查找依赖项?
- 如何在文档文件夹中创建目录
- "assimp/config.h"找不到,但它在文件夹中
- C++入门 5 版:类消息和文件夹
- 我可以在 Arduino 的库文件夹之外安装库吗?
- 如何按文件扩展名引用文件夹中的文件
- 在QTreeView中仅显示共享驱动器和文件夹
- 加载与引用 .NET DLL 位于同一文件夹中的引用的 .NET DLL 时"Not found"异常
- 介子复制/安装头文件到输出目录并保持文件夹结构
- vcruntime.h 从 Windows 包含文件夹中丢失?
- 在文件夹迭代上实现 RAII
- 使用 Powershell 命令将 cpp 文件的文件夹编译为 GNU 的 g++
- 使文件夹中的所有文件可供所有项目(子目录)访问
- 无法使用 CMake 从其他文件夹添加源文件
- 如何在安卓工作室中将c ++头文件从一个文件夹导入到另一个文件夹?
- 如何从Windows控制台调用.exe(C++)以在不同的目录(或任何目录)中创建文件夹?
- 如何识别项目是 QT 中的文件还是文件夹