|
Re: error with gsl eclipse [message #497965 is a reply to message #497917] |
Fri, 13 November 2009 14:52 |
Derek Messages: 60 Registered: July 2009 |
Member |
|
|
On 13/11/2009 14:48, yaseen wrote:
> Hi...
>
>
> I tried to run the following simple program in C++ in Eclipse (with
> CDT), using the GNU Scientific Library:
> #include <iostream>
> #include<conio.h>
> #include<cmath>
> #include <gsl/gsl_statistics.h>
> using namespace std;
>
> int main()
> {
>
> double data[5] = {17.2, 18.1, 16.5, 18.3, 12.6};
> double mean;
> mean = gsl_stats_mean(data, 1, 5);
>
> cout<< mean <<endl;
>
> return 0;
> }
>
> I've indicated the include directory and linked the libraries relevant
> to GSL.
>
> I got the error:
> **** Internal Builder is used for build ****
> g++ -IC:\Program Files\eclipse\GnuWin32\include -O0 -g3 -Wall -c
> -fmessage-length=0 -osrc\reg.o ..\src\reg.cpp
> g++ -LC:\Program Files\eclipse\GnuWin32\lib -oreg.exe src\reg.o -lgsl
> g++: Files\eclipse\GnuWin32\lib: No such file or directory
> Build error occurred, build is stopped
> Time consumed: 625 ms. any help please....!!!??
>
Surround the path in quotes:
g++ -L"C:\Program Files\eclipse\GnuWin32\lib" -oreg.exe src\reg.o -lgsl
--
Derek
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04128 seconds