无法在 Eclipse 中构建项目
Can't build project in Eclipse
我正在使用MinGW在Eclipse C++OpenGL中编程。
在我做这件事之前,我的项目运行得很好:-
Right-click on the the project and select "Properties"
Navigate to C/C++ Build -> Settings
Select the Tool Settings tab.
Navigate to GCC C++ Compiler -> Miscellaneous
In the option setting labeled Other Flags add -std=c++11
我这样做是因为我必须在代码中使用矢量数组。
问题是现在我无法构建我的项目。当我点击build时,它会100%生成,显示没有错误,但不会生成.exe文件。
编辑:=解决方案
将-std=c++11追加到命令行时放置空格。
将-std=c++11
追加到命令行时放置空格。
以及改变
cone1 {1.0f , 2.0f};
至
cone1 = {1.0f, 2.0f}; //problem fixed after doing this.
注意:-我像一样声明了我的矢量
vector<GLfloat> cone1{1.0f, 3.0};
相关文章:
- 无法在 CLion 中构建 C++ 项目
- 文本冒险游戏 - 如何区分一种项目类型与另一种项目类型以及如何构建项目类/子类
- 使用 Premake5 构建项目不会生成可执行文件或中间体
- 在OSx:ld上使用CMake构建C++项目:找不到体系结构x86_64的符号
- 无法从 bazel 使用 boost/iostream 构建项目包
- 如何使用MSBUILD V15构建C 项目
- 在Omnet 中构建项目时发生错误
- 如何一次在Visual Studio 2015和Visual Studio 2002中构建C 项目
- 在构建C++项目时提升相关错误
- Unity webGL - MacOS 上的构建项目失败
- 使用CMAKE,NINJA和CLANG构建项目,以竞争2019年
- 在使用Bazel Build构建项目期间,处理/选择界面的不同实现
- 当您的外部SDK仅具有.dll,.lib,.h文件时,如何链接和构建项目
- 尝试在Qt中升级Debian后构建项目
- 使用 Conan C/C++ 包管理器构建项目
- CMAKE:构建项目时执行C 文件
- 从VS2008升级后,VS2012中的构建项目显示错误
- OPENCV,使用CMAKE构建C 项目时的链接错误
- Eclipse 在添加 .h 和 .cpp 文件后不会构建项目
- 如何在Xcode4上从头开始构建C++项目-链接现有和新的外部库