b*g 发帖数: 644 | | b*g 发帖数: 644 | 2 俺已经用g++ run了简单的程序.
可为什么见有的同志要设什么makefile之类的东西,
还用gmake来编译. gmake又是什么呢?
另外COMMAND nm是做什么用的,好象可以用来打开file.o文件.
【在 b*g 的大作中提到】 : 俺从没有用过
| a*a 发帖数: 1295 | 3 I seldom write C/C++ program.
all Java, VC++, ...
fot those small progrags in C/C++,
I use gcc/g++/cc.
【在 b*g 的大作中提到】 : 俺从没有用过
| a*a 发帖数: 1295 | 4 sorry I dunno.
【在 b*g 的大作中提到】 : 俺已经用g++ run了简单的程序. : 可为什么见有的同志要设什么makefile之类的东西, : 还用gmake来编译. gmake又是什么呢? : 另外COMMAND nm是做什么用的,好象可以用来打开file.o文件.
| R***r 发帖数: 322 | 5 If you have bigger program, with multiple files, header files
you might need to write a makefile. Basically, Makefile specify
the relation between different source, object, exe files --
saying something like if I change file A, do I have to
recompile file B and how -- maybe file B use something
defined in file A. Makefile also keep you from typing
compile cmd lines again again.
In VC, MS hide this process from you, actually when you hit
"Build" instead of "Compile", VC do something like "make",
【在 b*g 的大作中提到】 : 俺从没有用过
| b*g 发帖数: 644 | 6 thanks a lot! Your words are very helpful!
【在 R***r 的大作中提到】 : If you have bigger program, with multiple files, header files : you might need to write a makefile. Basically, Makefile specify : the relation between different source, object, exe files -- : saying something like if I change file A, do I have to : recompile file B and how -- maybe file B use something : defined in file A. Makefile also keep you from typing : compile cmd lines again again. : In VC, MS hide this process from you, actually when you hit : "Build" instead of "Compile", VC do something like "make",
|
|