Message-ID: <351930C2.4E585DA5@cs.joensuu.fi> Date: Wed, 25 Mar 1998 18:28:50 +0200 From: Eugene Ageenko MIME-Version: 1.0 To: Eli Zaretskii , djgpp AT delorie DOT com Subject: Re: Problems with GCC 2.8.0 References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > > On Wed, 25 Mar 1998, Andris Pavenis wrote: > > > I tried to reproduce this with both gcc-2.8.0 (precompiled, I take > > precompiled gcc.exe also) and gcc-2.8.1 and had no success. > > Did you try to compile two or more source files on the same GCC command > line? That's how this problem was found, I believe. yes. I tried gcc test.c modules.c -o test and the files were following (but could be anything) ================== test.c =================== /* test program that does not compiled with gcc 2.8.0 following way */ /* gcc test.c module.c -o test.exe */ #include "module.h" #include int main(void) { hello(); exit(0); } ================ module.h ===================== #ifndef __MODULE_H #define __MODULE_H int hello(void); #endif /* __MODULE_H */ ================= module.c ==================== #include "module.h" #include int hello(void) { printf("Hello World"); }