mill2002 @博客园

contacting with pc fans and sharing collections

编译器gcc的使用

编译器gcc的使用
先下栽MinGW,安装后在系统路径进行添加,如加入:f:\MinGW\bin。
在‘命令提示符’键入 gcc -v 可出现gcc的版本信息。
 
使用方法:
  gcc -g test.c -o test (见李先静的书)
这样在test.c文件所在目录下,将test.c编译成 test.exe

 

download from csdn.net for 'gcc编译器安装文件' and unzip to f:\g\ of my notebook ThinkPad.
then add 'f:\g\gcc\bin' to environment variable 'path'. The last is double click to 'install.exe'
of folder 'F:\g\gcc\bin'. if ok,icon of gcc will appear on screen of computer.

 

 JFE and GCC: F:\tools\gcc,快捷键:在F:\trial文件夹中(desktop computer,台式机)

cygwin的开发环境

12-8-27
在Cygwin中(模拟linux开发环境)要转到f盘:
$ cd f:
$ pwd
/cygdrive/f (此为出现的结果,说明已进入到f盘)

在cygwin中(为bash环境)可以演示李先静一书的示例,
可以使用gcc and make,估计是cygwin调用MingW中的gcc,g++ and make,
也可以使用shell command,如
bash-4.1$ ./bt34|awk '{print " addr2line " $3" -e bt" }'>t.sh;. t.sh;

 后退一层文件夹:cd ../,俩成:cd http://www.cnblogs.com/

 

posted on 2010-08-03 11:44  mill2002  阅读(410)  评论(0编辑  收藏  举报

导航