Cygwin新用户*如何生成可执行文件?

时间:2019-02-27 03:10:35

标签: cygwin

我刚刚安装了Cygwin-我是新用户。我正在按照说明进行操作,但是我被卡住了。

我需要生成要使用的软件的可执行文件,该文件是用c ++制作的。当我在正确的目录中键入“ make”时,我会列出一个错误列表,但我不知道它们是什么意思。我的makefile可能有问题吗?

以下是说明: “随附的makefile应该允许Match在任何基于GNU的编译器平台以及许多其他平台上构建。如果您的编译器未命名为“ c ++”或需要其他命令行选项,则可能需要修改makefile。 ”

以下是错误:

    $('.selectpicker').selectpicker({
        liveSearch: true
    });

在此生成文件:

    $ make
c++ -O4 -c match.cc -o match.o -Wall -g
In file included from match.cc:37:0:
series.hh: In member function ‘void core::insert(const point&, int)’:
series.hh:161:5: error: ‘memmove’ was not declared in this scope
     memmove(&data[i+1], &data[i], sizeof(point)*(size-i-1));
     ^~~~~~~
series.hh:161:5: note: suggested alternative: ‘wmemmove’
     memmove(&data[i+1], &data[i], sizeof(point)*(size-i-1));
     ^~~~~~~
     wmemmove
series.hh: In member function ‘void core::erase(int)’:
series.hh:166:5: error: ‘memmove’ was not declared in this scope
     memmove(&data[i], &data[i+1], sizeof(point)*(size-i-1));
     ^~~~~~~
series.hh:166:5: note: suggested alternative: ‘wmemmove’
     memmove(&data[i], &data[i+1], sizeof(point)*(size-i-1));
     ^~~~~~~
     wmemmove
series.hh: In member function ‘int core::averageduplicates()’:
series.hh:214:2: error: ‘memmove’ was not declared in this scope
  memmove(&data[i+1],&data[j],sizeof(point)*(size-j));
  ^~~~~~~
series.hh:214:2: note: suggested alternative: ‘wmemmove’
  memmove(&data[i+1],&data[j],sizeof(point)*(size-j));
  ^~~~~~~
  wmemmove
series.hh: At global scope:
series.hh:239:25: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   void build_labelmap() throw(format_error) {
                         ^~~~~
series.hh:253:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   int lookup_label(int label, float depth) throw(format_error) {
                                            ^~~~~
series.hh:410:50: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   void addtiept(vector<tiept> &tiemap, tiept &t) throw(format_error) {
                                                  ^~~~~
series.hh:433:42: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   void buildmaps(series &s1, series &s2) throw(format_error) {
                                          ^~~~~
series.hh:474:48: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 tiepts read_tiefile(string name, ostream &log) throw(format_error);
                                                ^~~~~
series.hh:488:30: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
   void apply_gaps(series &s) throw(format_error) {
                              ^~~~~
series.hh:539:32: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 gaps read_gapfile(string name) throw(format_error);
                                ^~~~~
make: *** [Makefile:10: match.o] Error 1

按照下面的建议,在文件“ series.hh”中,我将“ memmove”替换为“ std :: memmove”。

我再次输入“ make”,现在我得到了:

VERSION=2.3

all: match

%: %.o
    c++ $^ -o $@ $(LDFLAGS)

.cc.o:
#   c++ -c $< -o $@ -Wall -g $(CFLAGS)
    c++ -O4 -c $< -o $@ -Wall -g $(CFLAGS)

match: match.o series.o config.o normalize.o floatnan.o
match.o: match.cc config.hh series.hh normalize.hh floatnan.hh
series.o: series.cc series.hh floatnan.hh
config.o: config.cc config.hh floatnan.hh
normalize.o: normalize.cc normalize.hh series.hh floatnan.hh
floatnan.o: floatnan.cc floatnan.hh

clean: 
    rm -f *.o match *~ match.exe match.log *.new xmatch score_matrix

tar:
    sed '/\S/ ! d;s/^/Match-${VERSION}\//' ../manifest > ../manifest.tmp
    tar -cz -C ../.. -f ../match-${VERSION}.tgz -T ../manifest.tmp

check-manifest:
    cd .. && find . -type f | sed 's/^.\///' | grep -v ,v | sort > manifest.tmp
    sort ../manifest > ../manifest.tmp1
    diff ../manifest.tmp1 ../manifest.tmp; true
    pwd | grep 'Match-${VERSION}/' > /dev/null || (echo version mismatch; false)

我该怎么办? 阿尔卑斯山

0 个答案:

没有答案