trec_eval的makefile在windows上生成错误

时间:2017-02-01 07:15:40

标签: windows makefile cygwin

早上好, 我遇到了同样的问题,这里是windows7上cygwin64提到的语法错误:

$ make
gcc -g -I.  -Wall -DVERSIONID=\"9.0\"  -o trec_eval trec_eval.c ... m_Rprec_mult_avgjg.c m_P_avgjg.c -lm
    In file included from sysfunc.h:21:0,
                     from m_ndcg.c:9:
    m_ndcg.c:13:8: erreur : expected ‘)’ before ‘/’ token
     double log2(double x);
            ^
    In file included from sysfunc.h:21:0,
                     from m_ndcg_cut.c:8:
    m_ndcg_cut.c:12:8: erreur : expected ‘)’ before ‘/’ token
     double log2(double x);
            ^
    In file included from sysfunc.h:21:0,
                     from m_Rndcg.c:9:
    m_Rndcg.c:13:8: erreur : expected ‘)’ before ‘/’ token
     double log2(double x);
            ^
    In file included from sysfunc.h:21:0,
                     from m_ndcg_rel.c:9:
    m_ndcg_rel.c:13:8: erreur : expected ‘)’ before ‘/’ token
     double log2(double x);
            ^
    In file included from sysfunc.h:21:0,
                     from m_binG.c:9:
    m_binG.c:13:8: erreur : expected ‘)’ before ‘/’ token
     double log2(double x);
            ^
    In file included from sysfunc.h:21:0,
                     from m_G.c:9:
    m_G.c:13:8: erreur : expected ‘)’ before ‘/’ token
     double log2(double x);
            ^
    make: *** [Makefile:54: trec_eval] Error 1

有人可以提供帮助吗? 感谢

0 个答案:

没有答案