crfpp icon indicating copy to clipboard operation
crfpp copied to clipboard

run make command on centos 7 system, but hint winmain.h not found.

Open cloudtrends opened this issue 9 years ago • 2 comments

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

cloudtrends avatar Jun 19 '16 01:06 cloudtrends

https://github.com/taku910/crfpp/pull/15

tavianator avatar Jun 19 '16 15:06 tavianator

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); }

jiyzhang avatar Jan 04 '19 01:01 jiyzhang