Re: [Dev-C++] Dev-C++ 4.9.3.0 beta available !
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hongli L. <h....@ch...> - 2002-05-14 19:11:57
|
On Tue, 2002-05-14 at 18:15, Luigi Santillo wrote: > Hello list, > > I have only limited experience, so probably I'm missing something. > > I'm wondering how does Dev-C++ 4.9.3.0 find out that main.c should be > recompiled, when one changes something in main.h. > > Anyway I tried to do some test, and the "perfect dependency" idea, seems to > be not working, also I've given a look at the makefile (named > "makefile.win") and did see the name of no header file (that is, no ".h" > file) anywhere. > Dev-C++ executes "gcc -MM main.c" and put the output of that into the Makefile, so that make will handle dependencies. However, if the output of gcc -MM contains error messages, it's output will be ignored. You will also have to #include "main.h" into your main.c in order to make this work. > Finally I see no reason why the linker is called each time one clicks on > the compile button, even if no object file was updated (because no source > file did actually change) by the compiler: clearly this action is superfluous. > There's no reason to click on Compile if everything is already compiled anyway. The only reason I can think of is because the user wants to relink the app, that's why I made Dev-C++ behave like that. |