Saturday, January 11, 2014

Debug: rounding in gcc, configuration in qt


Error explanation:
Explanation: Wrong rounding: did you forget the -frounding-math option if you use GCC (or -fp-model strict for Intel)?
The program has unexpectedly finished.


add the following line in the .pro file

QMAKE_CXXFLAGS += -std=c++0x -frounding-math

No comments:

Post a Comment