有没有用codeblocks的呢?

软件和网站开发以及相关技术探讨
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

有没有用codeblocks的呢?

#1

帖子 剩疯 » 2008-11-15 13:51

我想问一下大伙装好以后如何配置才能正常的编译c++程序呢? 环境还有编译和调试选项该如何设置? 网上都找不到教程阿 找了很久 拜托有空的帮忙解说一下 或者给个配置的教程链接也行 谢谢了 :em02
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: 有没有用codeblocks的呢?

#2

帖子 shellex » 2008-11-15 13:55

不爱用。
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

Re: 有没有用codeblocks的呢?

#3

帖子 剩疯 » 2008-11-15 13:56

那楼上的用什么呢?
头像
kevinhslcn
帖子: 48
注册时间: 2007-11-19 13:10

Re: 有没有用codeblocks的呢?

#4

帖子 kevinhslcn » 2008-11-15 14:13

建议LZ上官方网站看一下,很多东西在wiki里写得很清楚的,论坛里也有写的,搜下就知道了 :em01
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

Re: 有没有用codeblocks的呢?

#5

帖子 剩疯 » 2008-11-15 14:14

好的 我去看看 呵呵 就是英文菜点````
头像
kevinhslcn
帖子: 48
注册时间: 2007-11-19 13:10

Re: 有没有用codeblocks的呢?

#6

帖子 kevinhslcn » 2008-11-15 14:21

在ubuntu下面用的话还是很方面 的,很多东西不需要怎么设置,主要看你是要写什么样的程序了,是native的C++, 还是wxWidget,qt什么的
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

Re: 有没有用codeblocks的呢?

#7

帖子 剩疯 » 2008-11-15 14:21

我的编译器和调试器的路径已经设置好了 就像这里的

代码: 全选

"Settings->Compiler and Debugger->Global Compiler settings->Toolchain executables", select the compiler you installed and press "Auto-detect". If you get a message saying that the compiler was auto-detected, congratulations! If not, then press the button with the three dots next to the "Auto-detect" button and select the installation directory of your compiler manually. 
但是调试还是 提示什么都没做
头像
kevinhslcn
帖子: 48
注册时间: 2007-11-19 13:10

Re: 有没有用codeblocks的呢?

#8

帖子 kevinhslcn » 2008-11-15 14:24

你的程序可以compile,不能调试?
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

Re: 有没有用codeblocks的呢?

#9

帖子 剩疯 » 2008-11-15 14:25

不能编译 埃```` gcc gdb g++ ar 都有了 就是不知道还要设置什么 总是提示

代码: 全选

Nothing to be done.

上次由 剩疯 在 2008-11-15 14:28,总共编辑 1 次。
头像
kevinhslcn
帖子: 48
注册时间: 2007-11-19 13:10

Re: 有没有用codeblocks的呢?

#10

帖子 kevinhslcn » 2008-11-15 14:26

是不是gcc 和 dbg 没有装啊
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

Re: 有没有用codeblocks的呢?

#11

帖子 剩疯 » 2008-11-15 14:28

这两个都装好了 我用的是arch 所以这两个不可缺的```就是linksetting是空的 是不是这里没设置呢? win下好像还得设置环境变量 linux要吗?
上次由 剩疯 在 2008-11-15 14:30,总共编辑 1 次。
头像
kevinhslcn
帖子: 48
注册时间: 2007-11-19 13:10

Re: 有没有用codeblocks的呢?

#12

帖子 kevinhslcn » 2008-11-15 14:29

那build-essential装了没?
剩疯
帖子: 84
注册时间: 2007-11-05 20:52

Re: 有没有用codeblocks的呢?

#13

帖子 剩疯 » 2008-11-15 14:32

kevinhslcn 写了:那build-essential装了没?

代码: 全选

[leftover-crazy@leftover-crazy ~]$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.3.2 (GCC) 
[leftover-crazy@leftover-crazy ~]$ locate stdio.h
/usr/include/stdio.h
/usr/include/bits/stdio.h
/usr/include/c++/4.3.2/tr1/stdio.h
/usr/include/codeblocks/scripting/include/sqstdio.h
/usr/include/glib-2.0/glib/gstdio.h
/usr/include/libgsf-1/gsf/gsf-infile-stdio.h
/usr/include/libgsf-1/gsf/gsf-input-stdio.h
/usr/include/libgsf-1/gsf/gsf-outfile-stdio.h
/usr/include/libgsf-1/gsf/gsf-output-stdio.h
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/ssp/stdio.h
/usr/lib/klibc/include/stdio.h
/usr/lib/perl5/core_perl/CORE/nostdio.h
/usr/share/man/man0p/stdio.h.0p.gz
我用的是archlinux 没有这个包的 但是头文件都装好了
头像
kevinhslcn
帖子: 48
注册时间: 2007-11-19 13:10

Re: 有没有用codeblocks的呢?

#14

帖子 kevinhslcn » 2008-11-15 14:35

那就怪了,看我的

代码: 全选

root@ubuntu:~# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) 
root@ubuntu:~# locate stdio.h
/usr/include/stdio.h
/usr/include/bits/stdio.h
/usr/include/c++/4.3/tr1/stdio.h
/usr/include/codeblocks/scripting/include/sqstdio.h
/usr/include/glib-2.0/glib/gstdio.h
/usr/lib/perl/5.10.0/CORE/nostdio.h
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: 有没有用codeblocks的呢?

#15

帖子 shellex » 2008-11-15 14:35

我的编辑器是VIM
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
回复