help with g++ 2.96

lrtaylor@micron.com lrtaylor@micron.com
Mon Sep 22 17:31:00 GMT 2003


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



More information about the Gcc-help mailing list