- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all...
I've tried to build Qt5 with Intel compiler, but there is some error while configuring:
C:\\Qt\\qt5\\qtbase\\include\\QtCore/../../src/corelib/tools/qdatetime.h(125):
error:expected an identifier
static inline qint64 maxJd() { return (std::numeric_limits::max()) / 2; }
^
C:\\Qt\\qt5\\qtbase\\include\\QtCore/../../src/corelib/tools/qdatetime.h(125):
error:expected an expression
static inline qint64 maxJd() { return (std::numeric_limits::max()) / 2; }
the same errors for:
static inline qint64 minJd() { return std::numeric_limits::min() / 2; }
static inline qint64 nullJd() { return std::numeric_limits::min();}
I've tried to build Qt5 with Intel compiler, but there is some error while configuring:
C:\\Qt\\qt5\\qtbase\\include\\QtCore/../../src/corelib/tools/qdatetime.h(125):
error:expected an identifier
static inline qint64 maxJd() { return (std::numeric_limits
^
C:\\Qt\\qt5\\qtbase\\include\\QtCore/../../src/corelib/tools/qdatetime.h(125):
error:expected an expression
static inline qint64 maxJd() { return (std::numeric_limits
the same errors for:
static inline qint64 minJd() { return std::numeric_limits
static inline qint64 nullJd() { return std::numeric_limits
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like this error pertains to incomplete preceding syntax.
Not much can be done without the pre-processed file, which may give a clue about what went wrong.
You might compare pre-processed file associated with a successful build using another compiler.
For example, if you are building on linux or Mac, you would want to assure that it will build with the active g++.
Not much can be done without the pre-processed file, which may give a clue about what went wrong.
You might compare pre-processed file associated with a successful build using another compiler.
For example, if you are building on linux or Mac, you would want to assure that it will build with the active g++.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suspect you may have included some header before this header that has a macro definition of min/max, i.e.:
#define max
#define min
so when they get expanded here you get strange syntax errors.
The way to confirm this is to preprocess the file (using -E or -P) and see what the sources look like after preprocessing.
Judy

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page