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

complex.h missing in Visual Studio 2010 #305

Closed
HonzaSi opened this issue Oct 11, 2013 · 1 comment
Closed

complex.h missing in Visual Studio 2010 #305

HonzaSi opened this issue Oct 11, 2013 · 1 comment
Labels

Comments

@HonzaSi
Copy link

HonzaSi commented Oct 11, 2013

Hi there,
I know that FAQ refers to issue #95. However, I was not able to fix the issue for myself with the patch provided under #95. Is the patch supposed to work for the current release?
I was able to build the library including all .dll, .lib and .dep files using MSYS and Mingw(32/64). Nonetheless, I am not able to solve the problem of missing complex.h file during compilation on my program in Visual Studio. The same applies when I try to use prebuilt Windows binary packages.
Thanks for help!

@HonzaSi
Copy link
Author

HonzaSi commented Oct 11, 2013

OK, here is what worked for me:

  1. I adapted lapacke_config.h line

#ifndef LAPACK_COMPLEX_CUSTOM
to
#ifdef LAPACK_COMPLEX_CUSTOM

  1. I set following compiler flags: /D "HAVE_LAPACK_CONFIG_H" /D "LAPACK_COMPLEX_STRUCTURE" /D "LAPACK_COMPLEX_CUSTOM"

After that I was able to compile my program without problems. Please point me out if I am missing something. I have also tried to use LAPACK_COMPLEX_CPP instead of LAPACK_COMPLEX_STRUCTURE. However, the compiler was complaining with lots of errors C2894: templates cannot be declared to have 'C' linkage

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

No branches or pull requests

2 participants