This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

incorrect gcc 3.4.1 #pragma use warning


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]