Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.2.0-rc1
-
None
-
0dc87382e93d3742aa7d5519b3d51e83a075db1a
Description
Opening a file with the contents
#include <QtGlobal>
int main() {}
within a qbs project like
import qbs QtApplication { files: "main.cpp" }
leads to an info bar displaying the error message:
qglobal.h:1087:4: 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)."
whereas the corresponding qmake project
TEMPLATE = app SOURCES += main.cpp
referencing the same file does not lead to the parse error.