Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cloudtrends opened this issue Jun 19, 2016 · 2 comments
Open

Comments

@cloudtrends
Copy link

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
Copy link

#15

@jiyzhang
Copy link

jiyzhang commented Jan 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants