Author Topic: Help please: My first trial with C::B doesn't work  (Read 2890 times)

Offline daye

  • Single posting newcomer
  • *
  • Posts: 4
Help please: My first trial with C::B doesn't work
« on: June 22, 2011, 06:14:35 am »
Hello, I am new to C++ and C::B. It is bit shame that my first attempt with C::B and GSL is failed that gives me no clue as what is going wrong.

I have installed both C::B and gsl for windows. Following some post from this forum I added C:\GSL_win32\include to Compiler of C::B via setting--> search directories-->compiler and
C:\GSL_win32\lib to linker the same way. My first attempt is copied a test program for the gsl as

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

using namespace std;

int main(void)
{
  double x = 5.0;

  double y = gsl_sf_bessel_J0 (x);

  printf("J0(%g) = %.18e\n", x, y);

  return 0;
}

and the build process gives me the error as;

-------------- Build: Debug in gsl_test1 ---------------

Compiling: main.cpp
Execution of 'mingw32-g++.exe -Wall -fexceptions  -g    -IC:\GSL_win32\include  -c D:\Daye\coding\gsl_test1\main.cpp -o obj\Debug\main.o' in 'D:\Daye\coding\gsl_test1' failed.
Nothing to be done.

could some one out there kindly point me what this message indicates and what I should do to get started?

Many thanks !