Add -lm to c compile command to avoid compile error when use math library

No, just only affect on c compiler.

---

Yun Li


Cell phone: +86-(136) 7903 3612

Website: www.mzry1992.com


On Fri, Aug 15, 2014 at 2:22 PM, Ruins He <notifications@github.com> wrote:

> In branches/oldJudge/src/judge_all.cc:
>
> > @@ -74,11 +74,12 @@ int main(int argc, char *argv[], char *envp[])
> >  		    switch (problem::lang)
> >  		    {
> >  		        case judge_conf::LANG_C:
> > -		            FM_LOG_TRACE("start: gcc -static -w -O2 -DONLINE_JUDGE -o %s %s",
> > +		            FM_LOG_TRACE("start: gcc -static -w -O2 -DONLINE_JUDGE -o %s %s -lm",
>
> No need for g++ case?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UESTC-ACM/CDOJ/pull/256/files#r16281493>.
>