[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] First compiling problem
From: |
Manu Hack |
Subject: |
[Help-gsl] First compiling problem |
Date: |
Thu, 3 Aug 2006 00:57:42 -0400 |
#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.
I could use those constants like M_LOG2E though.
Am I missing anything? Thanks!
- [Help-gsl] First compiling problem,
Manu Hack <=