cygwin制造错误:目标配方' MalderMain.o'失败

时间:2016-04-22 07:19:31

标签: c gcc cygwin

使用make在Cygwin中编译程序时遇到问题 这是错误通知:

g++ -O2 -fopenmp -Wall -I/opt/local/include -Wno-write-strings -Iadmixtools_src -Iadmixtools_src/nicksrc -o MalderMain.o -c MalderMain.cpp
MalderMain.cpp:225:41: warning: "/*" within comment [-Wcomment]
       pars.use_naive_algo, fit_starts[r]/*fit_start_dis*//*,*/ /*fits_all_starts_refs[r],
In file included from /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/include/c++/cctype:42:0,
                 from /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/include/c++/bits/localefwd.h:42,
                 from /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/include/c++/ios:41,
                 from /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/include/c++/ostream:38,
                 from /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/include/c++/iostream:39,
                 from MalderMain.cpp:9:
CorrJack.hpp:26:18: error: expected ‘,’ or ‘...’ before numeric constant
     CorrJack(int _C, const std::vector <std::string> &_ids);
                  ^
MalderMain.cpp: In function ‘int main(int, char**)’:
MalderMain.cpp:339:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (int i = 0; i < allpairs.size(); i++) {
                        ^
MalderMain.cpp:345:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < allpairs.size(); i++) pairs2use.push_back(allpairs[i]);
                           ^
MalderMain.cpp:348:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < pairs2use.size(); i++){
                       ^
MalderMain.cpp:318:12: warning: unused variable ‘mult_hyp_corr’ [-Wunused-variable]
     double mult_hyp_corr = alder.compute_mult_hyp_corr(vector <bool> (num_ref_freqs, true));
            ^
Makefile:22: recipe for target 'MalderMain.o' failed
make: *** [MalderMain.o] Error 1

看起来错误位置很好,但是因为我是新手,我不知道该怎么做才能解决....

这里是CorrJack.hpp的周边线路

class CorrJack {

    const int C; // number of chromosomes on which to jackknife
    const std::vector <std::string> &jack_ind_ids; // labels of left-out chroms for output purposes
    // central = true for usual corr, false for non-zeroed
    std::pair <double, double> jackknife_corr(bool central);

  public:
    std::vector <Corr> data;

    CorrJack(int _C, const std::vector <std::string> &_ids);

    std::pair <double, double> jackknife_corr(void);
    std::pair <double, double> jackknife_cos(void);
    std::pair <double, double> jackknife_cos_polyache_denom(const CorrJack &test_data,
                                const CorrJack &ref_data);
    std::pair <double, double> jackknife_x2_avg(void);
    double tot_count(void);
    double tot_sum_x2(void);
  };

0 个答案:

没有答案