[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compling Error gsu 2.6
From: |
Kalthoff, Benedikt Johannes |
Subject: |
Compling Error gsu 2.6 |
Date: |
Thu, 30 Jul 2020 13:45:29 +0000 |
Dear all,
I would like to use your library but I am struggling getting ready for it.
I downloaded your latest 2.6 release and installed it like it has been explained
in your INSTALL file.
After that I want to start a test program which is just that one here:
################################################
#include <iostream>
#include <vector>
#include <numeric>
#include <string>
#include "stdio.h"
#include "gsl/gsl_statistics.h"
int main(){
double test[8] = {2,5,6,3,1,8,5,1};
double mean = gsl_stats_mean(test,1,8);
//std::cout << mean << '\n';
return 0;
}
####################################################
and I compile with the following command:
g++ -I ../gsl-2.6 blub.cpp -o blub
The directoy of gsl relative to the program path is correct but I get the
following error of
an undefined reference to gsl_stats_mean
and I do not know what I have done wrong.
Do you have any suggestions?
Best regards, Benedikt
- Compling Error gsu 2.6,
Kalthoff, Benedikt Johannes <=