taku910 / crfpp

CRF++: Yet Another CRF toolkit
Other
505 stars 192 forks source link

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

Open cloudtrends opened 8 years ago

cloudtrends commented 8 years ago

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

tavianator commented 8 years ago

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

jiyzhang commented 5 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

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 taku@chasen.org //

include "crfpp.h"

//#include "winmain.h"

int main(int argc, char **argv) { return crfpp_learn(argc, argv); }