Usung qt 4.8.1 unde windows. compiling "pure" c++ code i get the following errors:

Qt Code:
  1. trigwiz.h:149: error: 'CLOCK_MONOTONIC' was not declared in this scope
  2. 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:

Qt Code:
  1. TEMPLATE = app
  2. CONFIG += console
  3. CONFIG -= qt
  4.  
  5. SOURCES += main.cpp \
  6. trigwiz.cpp
  7.  
  8. HEADERS += \
  9. trigwiz.h
  10.  
  11. LIBS += -lpthread -lrt
To copy to clipboard, switch view to plain text mode 

unfortunately it was unsuccessfull...