Re: [Qt-creator] error with position independent code : qt 5.x

2016-09-16 Thread Konstantin Tokarev
16.09.2016, 18:09, "Tobias Hunger" : > Hi Kapil, > > according to the error message you will need to build your code with > -fPIC. Not very helpful, but the best I can do with that information, > sorry. > > https://cmake.org/cmake/help/v3.6/variable/CMAKE_POSITION_INDEPENDENT_CODE.html#variable:C

Re: [Qt-creator] error with position independent code : qt 5.x

2016-09-16 Thread Tobias Hunger
Hi Kapil, according to the error message you will need to build your code with -fPIC. Not very helpful, but the best I can do with that information, sorry. https://cmake.org/cmake/help/v3.6/variable/CMAKE_POSITION_INDEPENDENT_CODE.html#variable:CMAKE_POSITION_INDEPENDENT_CODE might help though:-)

[Qt-creator] error with position independent code : qt 5.x

2016-09-16 Thread Kapil Gupta
Hi, I am having this error with qt code : ``` In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:37:0, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:40,