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

problem on windows visual studio 2013 express #5

Closed
flj opened this issue Aug 2, 2014 · 8 comments
Closed

problem on windows visual studio 2013 express #5

flj opened this issue Aug 2, 2014 · 8 comments

Comments

@flj
Copy link

flj commented Aug 2, 2014

I followed your guide and created a project for msvs 2013. However, compiling gives an error in the cxsparse project.

error C2143: syntax error : missing ';' before '*

in cs.h for project cxsparse

Is this simply a suitesparse problem or someway related to the package? Anyone else has similar issues? I use version 4.2.1

Cheers

@jlblancoc
Copy link
Owner

Thanks for reporting!

It's fixed in master now with a workaround (not a real solution): by default, complex number support is disabled via a CMake variable "HAVE_COMPLEX".

Please, report the build error upstream (to Tim Davis or a user mailing list) so they can help you in case you really need complex numbers.

@letienhung
Copy link

Hello jlblancoc,
Could you tell me how to turn HAVE_COMPLEX off? I still have the same error with vs2013

@jlblancoc
Copy link
Owner

I just tried again with vs2013 and can confirm that SuiteSparse 4.4.1 builds nicely with Visual Studio 2013.

@letienhung: open cmake-gui, uncheck HAVE_COMPLEX, press Configure, then Generate, and rebuild from the Visual Studio IDE.

@letienhung
Copy link

Very strange, I don't have entry HAVE_COMPLEX in cmake-gui when I press Configure. I try to add HAVE_COMPLEX with type BOOL, uncheck it and press Configure again but the same errors still appear.

In file CMakeCache.txt, I have "HAVE_COMPLEX:BOOL=OFF" at line 198 and "HAVE_COMPLEX_H:INTERNAL=1" at line 427.

I have to remove cxsparse from SUBPROJECTS_TO_ADD and everything is ok.

My setting is: Win7 x64, VS2013, cmake-3.1.0-rc1, SuiteSparse 4.4.1

@jlblancoc
Copy link
Owner

Have you syncronized with the latest version of suitesparse-for-windows
from GitHub??

On Thu, Oct 30, 2014 at 9:11 AM, letienhung notifications@github.com
wrote:

Very strange, I don't have entry HAVE_COMPLEX in cmake-gui when I press
Configure ( here i use cmake-3.1.0-rc1). I try to add HAVE_COMPLEX with
type BOOL, uncheck it and press Configure again but the same errors still
appear.

In file CMakeCache.txt, I have "HAVE_COMPLEX:BOOL=OFF" at line 198 and
"HAVE_COMPLEX_H:INTERNAL=1" at line 427.


Reply to this email directly or view it on GitHub
#5 (comment)
.


Dr. Jose-Luis Blanco-Claraco
CITE-IV 1.05
Universidad de Almería, Departamento de Ingeniería
04120 Almería (Spain)
http://www.ual.es/~jlblanco/


@letienhung
Copy link

I use the latest package suitesparse-metis-for-windows-1.2.1 from github. Anyway, I don't use cxsparse so it is ok for me to remove it.

@jlblancoc
Copy link
Owner

Latest is 1.2.2:
https://github.com/jlblancoc/suitesparse-metis-for-windows/releases

I have updated the out-dated links in the front page.

On Thu, Oct 30, 2014 at 10:50 AM, letienhung notifications@github.com
wrote:

Yes, I use the latest package suitesparse-metis-for-windows-1.2.1 from
github. Anyway, I don't use cxsparse so it is ok for me to remove it.


Reply to this email directly or view it on GitHub
#5 (comment)
.


Dr. Jose-Luis Blanco-Claraco
CITE-IV 1.05
Universidad de Almería, Departamento de Ingeniería
04120 Almería (Spain)
http://www.ual.es/~jlblanco/


@letienhung
Copy link

Thanks. All the errors are gone now.

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

No branches or pull requests

3 participants