【发布时间】:2012-02-15 10:49:16
【问题描述】:
我在 Windows 上使用带有 minGW 和 msys 的 netbeans 来编写 C++ 代码。我安装所有东西的第一天,像system("PAUSE"); 这样的东西可以正常工作。我今天去我没有关闭的电脑,去我已经编译过的项目尝试再次运行它,它给了我这个,
main.cpp: In function 'int main()':
main.cpp:18:19: error: 'system' was not declared in this scope
make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1
make[2]: Leaving directory /c/Users/Grant/Documents/NetBeansProjects/CppApplication_1'
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[1]: Leaving directory '/c/Users/Grant/Documents/NetBeansProjects/CppApplication_1'
我不知道它有什么问题,这个代码是在星期三到期的。请帮忙。
【问题讨论】:
-
不,谢谢。我不知道我需要它。
-
如果您的问题得到解决,请将您的解决方案作为答案发布并接受它(blog.stackoverflow.com/2011/07/…)
标签: c++ netbeans compiler-errors mingw