Hacking:Problems and solutions

From Seamly2D
Revision as of 19:58, 5 May 2016 by Dismine (talk | contribs) (Created page with "== Build == === MSVS error: C2065: 'not': undeclared identifier=== '''Problem:''' Building with MSVS fail with error C2065: 'not': undeclared identifier.<br /> '''Cause:''' By...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Build

MSVS error: C2065: 'not': undeclared identifier

Problem: Building with MSVS fail with error C2065: 'not': undeclared identifier.
Cause: By default MSVS doesn't support C++ alternative tokens.
Solution: MSVS require the header to be included in order to use these identifiers.

#ifdef Q_CC_MSVC
    #include <ciso646>
#endif /* Q_CC_MSVC */