egcs 1.1a on DEC alpha OSF/3.2, problem with include files

kuball@zedo.fuedo.de kuball@zedo.fuedo.de
Thu Sep 10 04:04:00 GMT 1998


On 10 Sep , Alexandre Oliva wrote:
> kuball  <kuball@zedo.fuedo.de> writes:
> 
>> I'm having a problem with the prototypes of the functions strncmp and
>> bcopy. The c++ compiler does not see them, the c compiler does.
> 
> Run the C/C++ compiler with the -save-temps flag, and look for the
> declarations in the .i/.ii file it will produce.  You'll probably not
> find them in the .ii, only in the .i, but finding out why the C++
> preprocessor is eliminating these declarations is up to you.  Perhaps
> an incorrect/outdated version of string.h in /usr/local/include/g++ ?

Where can I find an explanation of the structure of the temp files?

Looking at test.ii gives no answers, but new questions: there is no
prototype for strcmp in the temp file, either. So why does the compiler
warn about strncmp but not about strcmp???

Martin Kuball






More information about the Gcc-bugs mailing list