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]

RE: help with g++ 2.96


Is it a C header?  If so, try surrounding your include statement with 'extern "C" {' and '}' like this:

extern "C" {
#include <incfile.h>
}

This will cause that file to be compiled as C source code rather than C++ source code, which must follow stricter rules.

Thanks,
Lyle Taylor
IS Applications

-----Original Message-----
From: ntk3@buffalo.edu [mailto:ntk3@buffalo.edu]
Sent: Monday, September 22, 2003 10:11 AM
To: gcc-help@gcc.gnu.org
Subject: help with g++ 2.96

Hello,

I am trying to compile lapack++ on RH 7.0 with g++ 2.96
I get the following error

ISO C++ forbids declaration of `inc' with no type

where inc is avariable used in one of the header files.

Please help


Nachiket Kasarekar
Mechanical Engineering Department
4441 Chestnut Ridge Road, #7
Amherst,NY 14228
Ph No - 716-903-5742


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