run make command on centos 7 system, but hint winmain.h not found.
hi all,
I am git clone the src into my centos 7 os , and configure and make crfpp,
but the compiler told me that :
crf_learn.cpp:9:21: fatal error: winmain.h: No such file or directory #include "winmain.h" ^ compilation terminated. make[1]: *** [crf_learn.o] Error 1
How can I solve this issue ?
thanks
https://github.com/taku910/crfpp/pull/15
Same issue on Mac platform:
g++ -DHAVE_CONFIG_H -I. -O3 -Wall -c -o crf_learn.o crf_learn.cpp crf_learn.cpp:9:10: fatal error: 'winmain.h' file not found #include "winmain.h" ^~~~~~~~~~~ 1 error generated. make[1]: *** [crf_learn.o] Error 1 make: *** [all] Error 2
"#include winmain.h" was included in the 2 files: crf_learn.cpp crt_test.cpp
I tried to comment them out and make again, everything was OK.
// // CRF++ -- Yet Another CRF toolkit // // $Id: crf_learn.cpp 1587 2007-02-12 09:00:36Z taku $; // // Copyright(C) 2005-2007 Taku Kudo [email protected] // #include "crfpp.h" //#include "winmain.h"
int main(int argc, char **argv) { return crfpp_learn(argc, argv); }