help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] problem with ode example


From: John Gehman
Subject: Re: [Help-gsl] problem with ode example
Date: Sun, 30 May 2010 10:31:54 +1000

gcc is the compiler -- in the second step you compiled an executable (which would have defaulted to a.out as you didn't specify a "-o <executable-name>" option). Getting no output was a good thing -- it means your code was linked into the executable without error. If you now run the executable with `./a.out `, you'll see whether your code works as expected.

Cheers,
john

On 28/05/2010, at 9:15 PM, address@hidden wrote:

Dear Sir or Madam,

I'm pretty new to C/C++ and have a question about the ode example you
provide
(http://www.gnu.org/software/gsl/manual/html_node/ODE-Example-programs.html ).

I copied that example (saved as test_ode.c) and it compiled properly
(using "gcc -Wall -c test_ode.c") and I got the test_ode.o file as
expected.
After that I typed " gcc -L/usr/local/lib test_ode.o -lgsl - lgslcblas" but
nothing happened i.e. I didn't get any output but only a blank command
line (so not even an error message appeared). I do not understand why
because I expect that line "printf ("%.5e %.5e %.5e\n", t, y[0], y[1]);"
to print something.

Could you please help me with that? Thanks in advance!

Best regards,
Willi


< test_ode.c><test_ode.o>_______________________________________________
Help-gsl mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gsl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]