有没有用codeblocks的呢?
发表于 : 2008-11-15 13:51
我想问一下大伙装好以后如何配置才能正常的编译c++程序呢? 环境还有编译和调试选项该如何设置? 网上都找不到教程阿 找了很久 拜托有空的帮忙解说一下 或者给个配置的教程链接也行 谢谢了
代码: 全选
"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.
代码: 全选
Nothing to be done.
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
代码: 全选
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