crfpp icon indicating copy to clipboard operation
crfpp copied to clipboard

add winmain.h to fix build

Open humem opened this issue 9 years ago • 4 comments

winmain.h is taken from the latest crfpp version 0.59 archive stored in googlecode

humem avatar Apr 23 '15 11:04 humem

Without the patch, compilation doesn't work.

$ /opt/crfpp# make
make  all-am
make[1]: Entering directory `/opt/crfpp'
g++ -DHAVE_CONFIG_H -I.     -O3 -Wall -c -o crf_learn.o crf_learn.cpp
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
make[1]: Leaving directory `/opt/crfpp'
make: *** [all] Error 2

arne-cl avatar Jul 11 '15 18:07 arne-cl

Worked around this on OS X by adding a

#ifdef _WIN32
#include "winmain.h"
#endif

ghost avatar Apr 14 '16 22:04 ghost

Thank you for the fix. It works for me. I'm waiting this is merged to master.

icoxfog417 avatar Nov 27 '17 08:11 icoxfog417

Worked around this on OS X by adding a

#ifdef _WIN32
#include "winmain.h"
#endif

good

shboy avatar Jan 02 '19 12:01 shboy