如何从IDE编译CHOLMOD库(SuiteSparse) [英] How to compile CHOLMOD library (SuiteSparse) from IDE

查看:145
本文介绍了如何从IDE编译CHOLMOD库(SuiteSparse)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,我试图通过 SuiteSparse 可以从IDE轻松编译每个其他库(例如Umfpack)(我在Linux上使用Code :: Blocks在Windows上使用Visual Studio)。但是,当尝试编译CHOLMOD时,我收到一堆语法错误,例如:

  t_cholmod_triplet.c(21):错误C2061:语法错误:标识符'TEMPLATE'

我调查了一些#define缺失的情况(例如PATTERN,REAL定义)因此,TEMPLATE的那些定义是不可见的。我在文件和makefile中搜索了它们,但什么也没找到。但是,在Linux上键入make时,库可以正常编译。我缺少什么?

您可以使用SuiteSparse METIS for Windows软件包: https://github.com/jlblancoc/suitesparse-metis-for-windows



贷方:何塞·路易斯·布兰科(阿尔梅里亚大学);杰罗姆·埃斯诺(Jerome Esnault)(INRIA)。


For some time I am trying to create a static CHOLMOD lib from SuiteSparse Each other library (f.ex. Umfpack) can be easiy compiled from IDE (I used Code::Blocks on Linux and Visual Studio on Windows). However when trying to compile CHOLMOD I get bunch of syntax errors like:

t_cholmod_triplet.c(21): error C2061: syntax error : identifier 'TEMPLATE'

I investigated that there are some #defines missing (like PATTERN, REAL defines) and therefore those definitions of TEMPLATE are invisible. I searched for them in files and in makefiles but found nothing. However when typing make (on Linux) library compiles just fine. What am I missing?

解决方案

You can use SuiteSparse METIS for Windows package: https://github.com/jlblancoc/suitesparse-metis-for-windows

Credit: Jose Luis Blanco (Universidad de Almeria); Jerome Esnault (INRIA).

这篇关于如何从IDE编译CHOLMOD库(SuiteSparse)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆