Re: [Dev-C++] more on Dev-C++ 4.9.3.0 beta and perfect dependency
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hongli L. <h....@ch...> - 2002-05-15 13:49:07
|
Luigi Santillo wrote: > Hello Hongli Lai > > At 21:15 14/05/02 +0200, Hongli Lai wrote: > >> 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. > > > Thanks for your explanation. It is very clear. > > Here are the steps I followed when doing my simple testing of the new > dependency generation feature. > > 1. The code. Instead of using main.c and main.h I've used: hello.c > (main source), print.h and print.c > Hm... you're right. There's a bug in Dev-C++ parsing code. I'm going to fix it now. The next version will include the bugfix. |