[Numpy-discussion] OT: using f2c.h
Robert Kern
rkern at ucsd.edu
Thu May 26 17:16:20 EDT 2005
Chris Barker wrote:
> 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
I'm willing to bet that it's choking on line 15:
typedef struct { real r, i; } complex;
"complex" is already taken, I believe. At least vim is highlighting it
as if it were a reserved type.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the NumPy-Discussion
mailing list