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, [email protected] 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
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl


_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to