分页: 1 / 2

有没有用codeblocks的呢?

发表于 : 2008-11-15 13:51
剩疯
我想问一下大伙装好以后如何配置才能正常的编译c++程序呢? 环境还有编译和调试选项该如何设置? 网上都找不到教程阿 找了很久 拜托有空的帮忙解说一下 或者给个配置的教程链接也行 谢谢了 :em02

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 13:55
shellex
不爱用。

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 13:56
剩疯
那楼上的用什么呢?

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:13
kevinhslcn
建议LZ上官方网站看一下,很多东西在wiki里写得很清楚的,论坛里也有写的,搜下就知道了 :em01

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:14
剩疯
好的 我去看看 呵呵 就是英文菜点````

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:21
kevinhslcn
在ubuntu下面用的话还是很方面 的,很多东西不需要怎么设置,主要看你是要写什么样的程序了,是native的C++, 还是wxWidget,qt什么的

Re: 有没有用codeblocks的呢?

发表于 : 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. 
但是调试还是 提示什么都没做

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:24
kevinhslcn
你的程序可以compile,不能调试?

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:25
剩疯
不能编译 埃```` gcc gdb g++ ar 都有了 就是不知道还要设置什么 总是提示

代码: 全选

Nothing to be done.


Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:26
kevinhslcn
是不是gcc 和 dbg 没有装啊

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:28
剩疯
这两个都装好了 我用的是arch 所以这两个不可缺的```就是linksetting是空的 是不是这里没设置呢? win下好像还得设置环境变量 linux要吗?

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:29
kevinhslcn
那build-essential装了没?

Re: 有没有用codeblocks的呢?

发表于 : 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 没有这个包的 但是头文件都装好了

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:35
kevinhslcn
那就怪了,看我的

代码: 全选

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

Re: 有没有用codeblocks的呢?

发表于 : 2008-11-15 14:35
shellex
我的编辑器是VIM