I need an online sandbox for C so I can compile and run C on any computer easily, but my program requires me to link against the math library.
Can I use -lm on codepad or another online sandbox for C programming?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not currently – since you can’t change the compiler options. From the about page, these are the compiler options currently in use for C:
However, you could always ask them to include
-lm:Also, as a commenter points out, It looks like the compiler at ideone.com links with the math library.