[Numpy-discussion] OT: using f2c.h

Chris Barker Chris.Barker at noaa.gov
Thu May 26 16:55:16 EDT 2005


HI all,

This is off-topic, as it has nothing to do with NumPy, but this is the 
only mailing list I'm on that has folks that might be able to help.

I'm trying to compile something that uses clapack, and thus f2clib. I 
installed f2c on my Gentoo box, and it compiled and installed fine, but 
when I try to compile the app in  question, I get errors in f2c.h:

g++ -c -o Utilities.o `/usr/local/bin/wx-config --inplace --cxxflags` 
    Utilities.cpp
In file included from Utilities.cpp:6:
/usr/include/f2c.h:16: error: parse error before `,' token
/usr/include/f2c.h:16: error: semicolon missing after struct declaration
/usr/include/f2c.h:16: error: abstract declarator `<anonymous struct>' 
used as
    declaration
/usr/include/f2c.h:16: error: namespace-scope anonymous aggregates must be
    static
/usr/include/f2c.h:132: error: 'real' is used as a type, but is not 
defined as
    a type.
/usr/include/f2c.h:134: error: 'complex' is used as a type, but is not 
defined
    as a type.
/usr/include/f2c.h:174: error: `R_fp' was not declared in this scope
/usr/include/f2c.h:174: error: typedef `real' is initialized (use __typeof__
    instead)
/usr/include/f2c.h:174: error: conflicting types for `typedef int 
(real)(...)'
/usr/include/f2c.h:14: error: previous declaration as `typedef float real'

Jsut in case, I also tried with the ftc.h that is included with 
Numeric24,  which compiled just fine (maybe it's now on topic?) I got 
the same errors. Is this a compiler flag issue (maybe for old style C) 
or something? I'm clueless.

thanks for any helpful hints.

As you can tell, I know next to nothing about C/C++

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the NumPy-Discussion mailing list