gcc compiler options
I've included math.h in my C program, but when I press 'run' it says I have undefined references, apparently i'm supposed to compile with -lm , but how can I add compiler flags in Repl?
Augusto-Vasques
Here is an explanation with images of how to configure it but it is in Portuguese.
PedroSerra
Please check this other thread: https://repl.it/talk/ask/Can-I-change-compiler-switches/14401?order=new
Press F1 inside the repl, type in shell on the box that pops up, hit enter
Now in the shell type
gcc filename -lm
And to run it
./a.out
@CSharpIsGud Thank you, I pressed F1 within the code section, then selected 'Open Shell' and did it from within there