Showing posts with label QT. Show all posts
Showing posts with label QT. Show all posts

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

Tuesday, October 15, 2013

Compile static libraries using QT


TARGET = ShareBased
CONFIG   += staticlib
OBJECTS_DIR = out

TEMPLATE = lib