Sunday, June 10, 2012

Compiling C programs on Ubuntu

On Ubuntu, it turns out, this does not work
gcc -lm code.c
but this does
gcc code.c -lm

No comments:

Post a Comment