Solve error: Cannot open include file: 'X11/Xlocale.h': No such file or directory

 

When you use FLTK with VS2010, you may get the error: fatal error C1083: Cannot open include file: 'X11/Xlocale.h': No such file or directory.

 

The way to solve this is quite simple, just add the following line before '#include <FL/Fl.H>'

#define WIN32

 

posted @ 2016-02-20 04:29  Grandyang  阅读(2001)  评论(0编辑  收藏  举报
Fork me on GitHub