Usung qt 4.8.1 unde windows. compiling "pure" c++ code i get the following errors:
trigwiz.h:149: error: 'CLOCK_MONOTONIC' was not declared in this scope
trigwiz.h:149: error: 'clock_gettime' was not declared in this scope
trigwiz.h:149: error: 'CLOCK_MONOTONIC' was not declared in this scope
trigwiz.h:149: error: 'clock_gettime' was not declared in this scope
To copy to clipboard, switch view to plain text mode
I know clock_gettime is in rt library and so i modified the .pro file as following:
TEMPLATE = app
CONFIG += console
CONFIG -= qt
SOURCES += main.cpp \
trigwiz.cpp
HEADERS += \
trigwiz.h
LIBS += -lpthread -lrt
TEMPLATE = app
CONFIG += console
CONFIG -= qt
SOURCES += main.cpp \
trigwiz.cpp
HEADERS += \
trigwiz.h
LIBS += -lpthread -lrt
To copy to clipboard, switch view to plain text mode
unfortunately it was unsuccessfull...
Bookmarks