473,378 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

A problem with GNU Scientific Library GSL

#include <iostream>
#include <gsl/gsl_math.h>
int main(){
double x;
x=gsl_pow_2(4);
std::cout << x << std::endl;
}

I ran an example using GSL. I added the path after -I when I compiled
it. I kept getting error. The error message was: undefined reference
to 'gsl_pow_2.

Any clue?

Aug 3 '06 #1
1 1696
manuhack wrote:
#include <iostream>
#include <gsl/gsl_math.h>
int main(){
double x;
x=gsl_pow_2(4);
std::cout << x << std::endl;
}

I ran an example using GSL. I added the path after -I when I compiled
it. I kept getting error. The error message was: undefined reference
to 'gsl_pow_2.

Any clue?
How about reading (and quoting) the documentation about 'gsl_pow_2'
function? It's not a standard C++ function, so nobody here necessarily
has any knowledge of it. The only prerequisite knowledge here is about
the language and the standard library.

Also, if GLS is a GNU project, don't they have some kind of online (web)
forum for any discussions on those? There is also a whole 'gnu.*' family
of newsgroups, you know.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Nick Coghlan | last post by:
Thought some folks here might find this one interesting. No great revelations, just a fairly sensible piece on writing readable code :) The whole article:...
3
by: Lindon | last post by:
whats the industry standard libraries for scientific mathematical programming? I did a few searchs and it seems Lapack and the Gnu Scientific Libraries are the two big ones, but what else? Any...
4
by: Tom | last post by:
I want to stream objects to sockets and/or files. wxWindows supports this, but I don't think it uses standard streams. I think it uses it's own. Boost doesn't have system services I think. ...
4
by: rhzehr | last post by:
Hi, I have been having an insane amount of trouble trying to compile a GNU Scientific Library example with MinGW on WinXP. I have been able to compile it fine on my linux box and on my windows...
20
by: mclaugb | last post by:
Has anyone recompiled the Scientific Computing package using NumPy instead of Numeric? I need a least squares algorithm and a Newton Rhaphson algorithm which is contained in Numeric but all the...
61
by: Marty | last post by:
I am new to C# and to structs so this could be easy or just not possible. I have a struct defined called Branch If I use Branch myBranch = new Branch(i); // everything works If I use Branch...
5
by: Kuldeep | last post by:
Hi All, Platform: Visual Studio 2005 Language: C#.NET Could you please help me find a pretty good component which can act as an Add-In to Visual Studio 2005 to carry out "Scientific...
9
by: Cristian | last post by:
algebraic expression 'a*b+c' with CIN .Is it possible? How to transfer the algebraic expression 'a*b+c' to the variable s (all double) with cout in a "Console Application" ? cout<<"Input a,b,c...
3
by: PengYu.UT | last post by:
Hi, I setprecision to be 100 for both cases. I'm wondering why the number of digits are different. Also, for a double number, I think any digits that are longer than 15 (or 16) are not...
3
by: swapna.munukoti | last post by:
Hi all, I am new to c#. I am facing a problem with exponential or scientific notification. When I use math.pow() funciton, if the numbers are big, it returns me in exponential format. And when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.