Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Error "make:****" while trying to build a project which uses GNU scientific library
Error "make:****" while trying to build a project which uses GNU scientific library [message #758129] Mon, 21 November 2011 21:05 Go to next message
Eclipse UserFriend
Hey ,

I am new to Eclipse and trying to use the GNU scientific library to do some differential equation stuff in C++.

I downloaded and installed the GNU library.
But when I try to run a small test code eclipse keeps giving this error --

Description Resource Path Location Type
make: *** [gsl_test] Error 1 gsl_test line 0 C/C++ Problem


The code I use is standard picked up from GSL webpage for testing library setup:

#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>

int main (void)
{
double x, y;
x = 5.0;
y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}

I cant figure whats going wrong...Need advice..

Also, any advice on checking if the library is correctly linked or not will help...I think I may have messed up there.
Thanks
Re: Error "make:****" while trying to build a project which uses GNU scientific library [message #758174 is a reply to message #758129] Tue, 22 November 2011 03:55 Go to previous message
Eclipse UserFriend
Here is described how to add a library
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_add_an_external_library_to_my_C.2B.2B_project.3F

Previous Topic:new to CDT
Next Topic:How to remove include paths
Goto Forum:
  


Current Time: Sun Jul 13 23:47:28 EDT 2025

Powered by FUDForum. Page generated in 0.03171 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top