Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compiling #9

Open
axa8975 opened this issue Aug 14, 2018 · 0 comments
Open

Error when compiling #9

axa8975 opened this issue Aug 14, 2018 · 0 comments

Comments

@axa8975
Copy link

axa8975 commented Aug 14, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant