imsl库的使用过程中遇到的问题

1,首先是安装,用的imsl7.0的库,网址:http://www.pipipan.com/file/87076708,里边有破解,但是这个安装文件只能装32位的,装不了64位的。

2,安装后找到lmtool这个程序,打开config service 选项卡,按照下面截图所示设置,注意,路径需要根据安装目录改动

之后看start/stop/preread选项卡,如果出现下图所示,则表示工作正常,已经破解

在vc中编译后按ctrl+f5运行,提示找不到license,查看环境变量,发现,存在两个同名的LM_LICENSE_FILE,其中一个是另外一个软件的,这个软件不常用,就先把环境变量给删了,imsl的环境变量又补充完整,把license的名字加上去,再ctrl+f5运行,不再提示找不到license了。

3,在使用imsl编程的过程中,需要注意,imsl7.0中用use linear_operators这句话是会出错的,当时intel论坛上也有人问,后来intel给出了个X64 imsl的补丁,但是32位的没有。
要使用包含在linear_operators这个库中的函数时,要用use+原函数

linear_operators这个文件是这样子的(一看就知道原因了):
module linear_operators


    use cond_int
    use det_int
    use diag_int
    use diagonals_int
        use fft_int
        use ifft_int    
        use eye_int
    use lin_eig_self_int
    use lin_sol_self_int
    use norm_int
    use operation_i
    use operation_ix
    use operation_t
    use operation_h
    use operation_tx
    use operation_hx
    use operation_x
    use operation_xi
    use operation_xt
    use operation_xh
    use orth_int
    use rand_int
    use rank_int
    use svd_int
    use unit_int
    use eig_int
    use chol_int
    use isnan_int

end module

所以,用到哪个就直接写吧,因为上面给的下载文件不能安装64位的,只能装32位的,所以,不要指望能用官方给的修复文件,如果要用到.x.那就加一句use operation_x,如果用到det,就加一句 use det_int,而如果写了 use linear_operators 就编译不通过。

原文地址:https://www.cnblogs.com/lianjiehere/p/4595334.html