针对C++的Netbeans构建问题
Netbeans Building Issues for C++
我使用的是MinGW complexer/make/etc文件,但每当我试图运行代码时,它都会向我吐出这个信息:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/c/Users/Geneva/workspace/C++ Through Game Programming'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/c___through_game_programming.exe
make[2]: Entering directory `/c/Users/Geneva/workspace/C++ Through Game Programming'
mkdir -p dist/Debug/MinGW-Windows
g++ -o dist/Debug/MinGW-Windows/c___through_game_programming build/Debug/MinGW-Windows/diceroll.o build/Debug/MinGW-Windows/main.o
build/Debug/MinGW-Windows/main.o: In function `main':
C:UsersGenevaworkspaceC++ Through Game Programming/main.cpp:35: multiple definition of `main'
build/Debug/MinGW-Windows/diceroll.o:C:UsersGenevaworkspaceC++ Through Game Programming/diceroll.cpp:16: first defined here
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/c___through_game_programming.exe] Error 1
make[2]: Leaving directory `/c/Users/Geneva/workspace/C++ Through Game Programming'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/c/Users/Geneva/workspace/C++ Through Game Programming'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 1s)
我的环境变量PATH设置正确,当我安装gbd时,我只是将其提取到正常的C:\MinGW\bin,这样我就不必执行C:\MinGW\msys\1.0\bin有人能帮忙吗?如果我不能弄清楚这一点,我将回到Java 中进行编码
编译器消息很清楚:您定义了多个main()
函数
相关文章:
- macOS 上的 openvino 构建问题
- wxWidgets jpeg库构建问题
- exteranl原生构建问题,构建命令失败,android工作室
- 修复了安装 OSRM 时使用"make"命令时的构建问题
- 使用Spatialite构建问题
- 基于 libzbar 的 Qt 应用程序的构建问题
- 节俭-0.9.3包C++构建问题.使用哪些助推包
- Visual Studio 11 的构建问题
- 使用 QThread 显示构建问题的延时
- 在 OS X 10.8.5 上使用 Xcode 5.0 和 Qt 5.1.1 构建问题
- 在Windows上使用Qt和opencv构建问题
- VS 2010构建问题:参考问题
- gnustl_shared的Android NDK构建问题
- 针对C++的Netbeans构建问题
- <cmath> 与安卓 ndk 一起使用时构建问题
- Gradle构建问题
- c++ Qt Qwt构建问题
- 发布构建问题;将std::string对象传递给静态库函数
- C++图形构建问题
- Cocos2dx构建问题