This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: help with g++ 2.96
- From: lrtaylor at micron dot com
- To: <ntk3 at buffalo dot edu>, <gcc-help at gcc dot gnu dot org>
- Date: Mon, 22 Sep 2003 11:31:05 -0600
- Subject: 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