how to add compiler option for a library
Solved
3rd Party Software
-
Hi everyone so I am trying to use the mosquitto mqtt open source library with my qt c++ widget application. But I am having trouble getting qt creator to compile I have tried adding QMAKE_CXXFLAGS += -lmosquitto
But it doesn't work as I still get lots of errors saying undefined reference to 'function name here'Does anyone know how to add third party library compiler options?
FYI: I am on ubuntu, creating a widget application and am using qmake
Any help with this would be greatly appreciated,
Thanks in advance,
Dean -
Hi and welcome to devnet,
LIBS += -lmosquito
Should do the trick if mosquito is installed in a standard location.
On a side note, Qt has its own mqtt module that is cross-platform as well.