包含文件的含义
您好,我正在尝试在我的 Ubuntu 10.04 笔记本电脑上安装 PETSc 软件包。我正在尝试使用外部求解器 SuperLU 来配置它。
在 PETSc 网页中进行配置/制作时要包含的选项的说明之一如下:
--with-PACKAGENAME-include=INCLUDEPATH --with-PACKAGENAME-lib=LIBRARYLIST:通常包是完整定义的通过其包含文件位置和库列表。 [如果包已安装] - 那么可以使用这两个选项来指定要配置的包。
我不明白包含文件的含义。这是某种头文件吗?看起来怎么样?
我是安装和使用数值软件的新手,因此详细的答案将会有所帮助。
Hi I am trying to install the PETSc package on my Ubuntu 10.04 laptop. I am trying to configure it with the external solver SuperLU.
One of the instructions for the options to include while doing configure/make in the PETSc webpage is the following:
--with-PACKAGENAME-include=INCLUDEPATH --with-PACKAGENAME-lib=LIBRARYLIST: Usually a package is defined completely by its include file location - and library list. [If the package is already installed] - then one can use these two options to specify the package to configure.
I do not understand what the include file means. Is this some sort of header file? How does it look like?
I am new to installing and using numerical software so a detailed answer will be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这更适合超级用户(并且我投票支持迁移),但是是的,包含文件(C 中)是头文件。
您可以通过 .h(或很少为 C++ 头文件的 .hpp)扩展名来识别它们。您通常可以在
/usr/include
或/usr/local/include
中找到它们,具体取决于您的系统。I think this fits better on superuser (and I'm voting for migration), but yes, include files (in C) are header files.
You can recognize them by the .h (or rarely .hpp for C++ header files) extension. You usually find them in
/usr/include
or/usr/local/include
, depending on your system.