code ::块和LAPACK [英] Code::Blocks and Lapack

查看:267
本文介绍了code ::块和LAPACK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • How do you add Lapack libraries to Code::Blocks IDE on Windows?.
  • The files I have are these: (Victor's Compiled binary libraries for Windows on this page: http://www.stanford.edu/~vkl/code/libs.html)


  • lapack_win32.a

  • lapack_win32.def

  • lapack_win32.dll

  • lapack_win32.exp

  • lapack_win32.lib

  • lapack_win32.a
  • lapack_win32.def
  • lapack_win32.dll
  • lapack_win32.exp
  • lapack_win32.lib


  • 如何将看起来像C / C ++一个简单的例子使用动态库?
    我用的#include<&LAPACK GT; ?还是怎么样?

  • How would look like a simple example in C/C++ using the dynamic library? Do I use #include <lapack>? or how?

推荐答案

首先假设你已经安装在C这些库:\\ LapackLib

First assuming you have installed these libraries in C:\LapackLib.


  1. 点击设置菜单,然后选中编译器菜单项。

  1. Click on the Settings Menu and then select the Compiler menu item.

编译器设置对话框选中目录标签。

点击添加按钮。

在在这个例子中弹出输入您的库路径的窗口,是 C:\\ LapackLib \\

In the window that pops up type in your library path in this example it is C:\LapackLib\.

选择在链接标签

重复步骤3和4,然后preSS的确定按钮以关闭编译器设置对话框

Repeat steps 3 and 4, then press the Ok button to close the Compiler Settings Dialog

在您的项目名称,单击鼠标右键,从树视图在屏幕的左侧,它会在粗体

Right click on your project name from the Treeview on the left hand side of the screen, it will in bold.

从弹出菜单中选中构建选项菜单项

From the popup menu select the Build Options menu item

选择在链接标签

链接库窗口中,点击添加按钮。选择的路径从库文件对话框中,在这种情况下, C:\\ LapackLib \\ lapack_win32.lib 。然后preSS的确定按钮。

From the Link Libraries window, click on the Add button. Select the path to your library from the File Dialog, in this case it is C:\LapackLib\lapack_win32.lib. Then press the Ok Button.

在源$ C ​​$ C添加相关声明包含

In your source code add the relevant include declaration

例如。 的#include&LT;&LAPACK GT; 的#includelapack.h

有关更多信息,请参见下面的教程或$ C $个cblocks 手动

For further information see the following tutorial or the CodeBlocks manual.

这篇关于code ::块和LAPACK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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