Closed keithohara closed 6 years ago
Thanks for building on Linux, I tried to structure the project so it would but haven't done it yet personally.
It seems strange they would clash as both of those types should be declared within a namespace. Following your suggestion, a quick fix might be:
#include "ofFileUtils.h"
#include "ofLog.h"
#ifdef TARGET_OS_LINUX
// these are set by X.h and clash with optionsparser types
#undef None
#undef Bool
#endif
#include "Options.h"
This should now be fixed with loaf 1.4.0
Long time Processing & Lua user, but new to OF; this project looks great!
When trying to build loaf on Ubuntu 14.04 (gcc-4.9), I ran into this error:
None
andBool
clash with preprocessor macros fromX.h
so my workaround was to changeCommandLine.cpp
: