Hi, everybody! I'm a rookie in C programming and I've started my first program with my code blocks(8.02 for Mac OS).
我从codeblocks官方下载了8.02的七个包,无错情况下全部安装成功了。可从 File -> new -> project -> Console Application -> C++ -> project title & filename
Then I built the file and I ran it (just the "helloworld" program)
我build的时不报告错误和警告,而运行的时候总是提示我: "It seems that this project has not been built yet. Do you want to build it now?" 我点是又反复出现相同的提示。点否又不出运行结果。不知道怎么解决哈。我选择的GNU C++编译器,难道这个编译器有问题吗?
codeblocks安装成功后新建任何工程后,运行前不能构建
-
- 帖子: 68
- 注册时间: 2007-01-13 20:52
- 联系:
-
- 帖子: 68
- 注册时间: 2007-01-13 20:52
- 联系:
Re: codeblocks安装成功后新建任何工程后,运行前不能构建
请知道的给个ubuntu 下安装配置codeblocks的步骤和必要的注意事项,万分感谢
-
- 帖子: 68
- 注册时间: 2007-01-13 20:52
- 联系:
-
- 帖子: 68
- 注册时间: 2007-01-13 20:52
- 联系:
Re: codeblocks安装成功后新建任何工程后,运行前不能构建
唉,还是没人回答
不过,昨晚回去我已经自己解决了, 按照codeblocks的官方安装方法安装可以正常build了。
不过,昨晚回去我已经自己解决了, 按照codeblocks的官方安装方法安装可以正常build了。
-
- 帖子: 9
- 注册时间: 2009-01-17 19:02
Re: codeblocks安装成功后新建任何工程后,运行前不能构建
你说一下怎么装的 ?我也是什么反应都没有!谢谢!!
-
- 帖子: 2
- 注册时间: 2008-10-21 15:09
Re: codeblocks安装成功后新建任何工程后,运行前不能构建
g++ can link both c and c++ projects, so C::B uses it for both.
To change that go to Settings -> Compiler & Debugger -> Compiler -> Toolchain executables
change g++ to g++-4.4 in the toolchain executables
从别的论坛找来的答案,可以正确运行。
To change that go to Settings -> Compiler & Debugger -> Compiler -> Toolchain executables
change g++ to g++-4.4 in the toolchain executables
从别的论坛找来的答案,可以正确运行。
-
- 帖子: 1
- 注册时间: 2012-11-15 22:59
- 系统: Ubuntu
Re: codeblocks安装成功后新建任何工程后,运行前不能构建
在Codeblocks的论坛上找了一阵,终于找到了一个解决方法:Settings -> Compiler and Debugger... -> Globle Compiler Settings -> Toolchain executables ->Programs Files 的 ' Linker for dynamic libs: ' 默认设置为 g++ ,我把它改为 gcc ,然后再去 Build , 编译通过,接着 Run,没有再出现消息框, 黑底白字的控制台上终于有了熟悉的 "Hello World!”