包括来自GNU GSL的文件 [英] including files from GNU GSL

查看:53
本文介绍了包括来自GNU GSL的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在编写一些将使用GNU

科学图书馆(GSL)模块的程序。


GSL模块中包含的命令包含如下命令:


#include< gsl / gsl_rng.h>


(例如)。然而这些头文件实际上并不在gsl

目录中。


结果是当我尝试编译程序时,即使是一个程序

GSL,它找不到必要的标题。


我*是*使用编译器选项gcc -I(目录)其中(目录)是

dir。包含gsl / dir。


我在这里做错了什么?即使是在
中给出的简单示例程序,GSL手册也不会编译。


(我不想通过编译到对象形式整个GSL;我

只是想为一个程序编译一个或两个模块我是

写作。)

Hello all,

I''m writing some programs that will be using modules from the GNU
Scientific Library (GSL).

Include commands within the GSL modules have commands such as,

#include <gsl/gsl_rng.h>

(for example). Yet these header files aren''t actually in the gsl
directory.

The result is that when I try to compile a program, even one from the
GSL, it can''t find the necessary headers.

I *am* using compiler option gcc -I (directory) where (directory) is
the dir. containing the gsl/ dir.

What am I doing wrong here? Even the simple Example Program given in
the GSL manual won''t compile.

(I don''t want to go through compiling to object form the whole GSL; I
just want to be able to compile one or two modules for a program I''m
writing.)

推荐答案

Joseph Wakeling写道:
Joseph Wakeling wrote:

大家好,

我正在写一些将使用GNU
科学库(GSL)模块的程序。

GSL模块中包含的命令包含如下命令:

#include< gsl / gsl_rng.h>

(例如)。然而这些头文件实际上并不在gsl
目录中。

结果是,当我尝试编译程序时,即使是来自
GSL的程序,也可以找不到必要的标题。

我*使用编译器选项gcc -I(目录),其中(目录)是dir。包含gsl / dir。

我在这里做错了什么?

Hello all,

I''m writing some programs that will be using modules from the GNU
Scientific Library (GSL).

Include commands within the GSL modules have commands such as,

#include <gsl/gsl_rng.h>

(for example). Yet these header files aren''t actually in the gsl
directory.

The result is that when I try to compile a program, even one from the
GSL, it can''t find the necessary headers.

I *am* using compiler option gcc -I (directory) where (directory) is
the dir. containing the gsl/ dir.

What am I doing wrong here?




你发布的是错误的新闻组。

http://www.ungerhu.com/jxh/clc .welcome.txt


-

pete



You are posting to the wrong newsgroup.

http://www.ungerhu.com/jxh/clc.welcome.txt

--
pete


你有没有全部链接图书馆?我使用linux knoppix并且我必须

写:

gcc namefile.c -lgsl -lgslcblas

Have u linked all the libraries? i use linux knoppix and i have to
write:
gcc namefile.c -lgsl -lgslcblas


嗨Aleramo ---我没有这样做,所以谢谢你的信息;但

包括那些选项没有区别。 :-(


FWIW我希望能够以一种独立于编译器的方式解决如何执行此操作的问题。使用...... ;-)

Hi Aleramo---I hadn''t been doing that, so thanks for the info; but
including those options makes no difference. :-(

FWIW I''d like to be able to work out how to do this in a way that is
independent of the compiler I''m using... ;-)


这篇关于包括来自GNU GSL的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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