Open cloudtrends opened 8 years ago
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
^~~~~~~~~~~
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 taku@chasen.org //
//#include "winmain.h"
int main(int argc, char **argv) { return crfpp_learn(argc, argv); }
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