Mail Archives: djgpp/1997/04/01/08:46:54
Deltaman wrote:
>
> In 'somefunc.c' I include 'header.h' and 'mainprog.c' and in
> 'mainprog.c' I include 'header.h'. It compiles perfectly (in RHIDE) but
At first it is not god programming style to include in a source
file an other source file with real code (not prototypes) until
you know exactly what you do. And so you problem may be, that
the code which is in 'mainprog.c' is now compiled in 'somfiunc.c'
AND in 'mainprog.c'
And the next reason (that's for Skye) can be the curently
bug of RHIDE, that it includes when linking the final exacutable
also for any header on the desktop the corresponding .o file.
But this happens ONLY when not using a project.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -