Hi,
I get this error when I build with make all:
CXX/LD -o .build_release/examples/tangseng/crf/Metric.bin
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x20): undefined reference to
main'
collect2: error: ld returned 1 exit status
Makefile:601: recipe for target '.build_release/examples/tangseng/crf/Metric.bin' failed
make: *** [.build_release/examples/tangseng/crf/Metric.bin] Error 1
I tried adding int main () {} in Metric.cpp to continue compiling, but the following error comes up:
CXX examples/tangseng/crf/main.cpp
In file included from examples/tangseng/crf/MaskRefine.h:2:0,
from examples/tangseng/crf/main.cpp:3:
examples/tangseng/crf/FullCRF.h:27:49: error: expected ‘,’ or ‘...’ before ‘&&’ token
PairwisePotential& operator=(PairwisePotential&& other);
^
examples/tangseng/crf/FullCRF.h:53:29: error: expected ‘,’ or ‘...’ before ‘&&’ token
FullCRF& operator=(FullCRF&& other);
^
examples/tangseng/crf/main.cpp: In function ‘int main(int, char**)’:
examples/tangseng/crf/main.cpp:175:18: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^
Makefile:552: recipe for target '.build_release/examples/tangseng/crf/main.o' failed
make: *** [.build_release/examples/tangseng/crf/main.o] Error 1
I have no idea why the initial error is happening. Any help would be appreciated.