bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gsl histogram


From: Marek Nečada
Subject: Re: gsl histogram
Date: Wed, 10 Jan 2024 08:49:55 +0200
User-agent: Mozilla Thunderbird

Hi,

if your program uses gsl (assuming it has been installed into your library path), most likely you need to provide a command line parameter to link it to GSL, -lgsl,

So to compile your program you run

g++ -o my_exe hadron.cpp -lgsl (possibly other necessary linker options here, such as -lm).

and to run you program

./my_exe (possibly command line arguments to your program here)

Also, not being related to GSL bugs, this is probably not the right mailing list for this kind of questions. I'd rather recommend some beginner-friendly general programming forum / chat, as this question is not even GSL-specific (the question can be formulated as "how do I compile/link and run a C++ program that uses some shared library", in this case the library is GSL, but the answer would be pretty much the same regardless of which shared library it is).

See also https://www.gnu.org/software/gsl/doc/html/usage.html

Kind regards,
Marek

zahra.badieian--- via Bug reports for the GNU Scientific Library kirjoitti 9.1.2024 klo 14.14:
Hello
I would like to use gsl histogram for my program. but I do not know how I can 
run a program c++ by gsl?
For run I have to write an especial command?
Please guide me how do I run my program?
Is it enough to werite my terminal below command?
g++ hadron.cpp -o my exe
Thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]