in ofConstants.h lines 125-129:
Code:
#ifndef __MWERKS__
#define OF_EXIT_APP(val) std::exit(val);
#else
#define OF_EXIT_APP(val) std::exit(val);
#endif
#define OF_EXIT_APP(val) std::exit(val);
#else
#define OF_EXIT_APP(val) std::exit(val);
#endif
becomes:
Code:
#ifndef __MWERKS__
#include <cstdlib>
#define OF_EXIT_APP(val) std::exit(val);
#else
#define OF_EXIT_APP(val) std::exit(val);
#endif
#include <cstdlib>
#define OF_EXIT_APP(val) std::exit(val);
#else
#define OF_EXIT_APP(val) std::exit(val);
#endif
If you don't include cstdlib, exit won't be reconized and so OF_EXIT_APP won't be neither. As the errors are inside ofQtUtils, it could be a bit confusing :
Quote:
||=== openFrameworksLib, release ===|
F:/JOBS/of_preRelease_v0061_all/libs/openFrameworks/video/ofQtUtils.cpp||In function 'void initializeQuicktime()':|
F:/JOBS/of_preRelease_v0061_all/libs/openFrameworks/video/ofQtUtils.cpp|22|error: 'exit' is not a member of 'std'|
F:/JOBS/of_preRelease_v0061_all/libs/openFrameworks/video/ofQtUtils.cpp|29|error: 'exit' is not a member of 'std'|
||=== Build finished: 2 errors, 0 warnings ===|
F:/JOBS/of_preRelease_v0061_all/libs/openFrameworks/video/ofQtUtils.cpp||In function 'void initializeQuicktime()':|
F:/JOBS/of_preRelease_v0061_all/libs/openFrameworks/video/ofQtUtils.cpp|22|error: 'exit' is not a member of 'std'|
F:/JOBS/of_preRelease_v0061_all/libs/openFrameworks/video/ofQtUtils.cpp|29|error: 'exit' is not a member of 'std'|
||=== Build finished: 2 errors, 0 warnings ===|
I don't know if it should be added to the core but at least now it's here if it's useful for someone!