[odb-users] Problem compiling with QT

harriev9 harriev9 at gmail.com
Thu Aug 4 11:53:09 EDT 2016


Hello,

When I compile my program (it is using QT 5.6) then i get an error
message:

/usr/include/QtCore/qglobal.h:1087:4: error: #error "You must build
your code with position independent code if Qt was built with -reduce-
relocations. " "Compile your code with -fPIC (-fPIE is not enough)."

Is it possible to compile with -fPIC and if so how do i instruct the
odb compiler to do so?

Greetings,
Harrie Versteden.



More information about the odb-users mailing list