Hi there.
I'm new here and trying to get ALGLIB started, but I have little problems. I'm sure sb can help me.
I am programming in Linux (Debian) with gcc4.4.5.
I downloaded ALGLIB and decompressed all files from the src directory.
Now I wanted to test it with a gammafcn_test.cpp, which is in the same directory:
Code:
#include<iostream>
#include "specialfunctions.h"
int main () {
double x = 4.5;
double y = alglib::gammafunction(x);
std::cout << y << "\n";
}
But when compiling I get the following error message:
/tmp/ccX6dNCL.o: In function `main':
bessel_test.cpp:(.text+0x2b): undefined reference to `alglib::gammafunction(double)'
collect2: ld returned 1 exit status
What did I wrong?
Thanks for helping.