incorrect gcc 3.4.1 #pragma use warning

Jeffrey Holle jeff.holle@verizon.net
Mon Jul 26 03:01:00 GMT 2004


Just thought I'd communicate, hopefully to the right people, a problem 
I've observed.

In compiling code that compiled cleanly with gcc 2.3.3, with gcc 3.4.1, 
I get:

   warning: #pragma implementation for calendar.cpp appears after file 
is included

The code that produced this was:

   #if defined(__GNUG__) && !defined(__APPLE__)
     #pragma implementation "calendar.cpp"  <-- indicated line
     #pragma interface "calendar.cpp"
   #endif

There are no inclusions in this file prior to the above code, just a 
comment header.



More information about the Gcc-help mailing list