Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: f2c is using the C99 keyword complex #24198

Closed
mattip opened this issue Jul 17, 2023 · 2 comments
Closed

BUG: f2c is using the C99 keyword complex #24198

mattip opened this issue Jul 17, 2023 · 2 comments

Comments

@mattip
Copy link
Member

mattip commented Jul 17, 2023

complex is a macro in gcc's "complex.h", but it is also used in f2py-generated code to represent a complex float type. So if #include <complex.h> appears in the headers, there are many errors when compiling the linalg module due to code like this which uses complex as a type

static complex c_b21 = {1.f,0.f};
static doublecomplex c_b1078 = {1.,0.};
/* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
incx, complex *cy, integer *incy)

@mattip
Copy link
Member Author

mattip commented Jul 17, 2023

cc @lysnikolaou

@WarrenWeckesser
Copy link
Member

Fixed by #24364.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants