does this have to be passed for every library you would like to include?
what about the include statements in the .c file?
I have:
Code:
#include <stdio.h>
#include <math.h>
and when compiling (cc main.c), I get:
Code:
In function `main':
: undefined reference to `floor'
Should I de running "cc -lm main.c" ?
How exactly does this work?