[Qt-creator] qmake will not build c++ file named something like format.cc and ostream.cc

Kai Koehne Kai.Koehne at qt.io
Wed Jul 19 09:03:40 CEST 2017


Hi Morton,


Qt Creator doesn't build files itself - it merely wraps build systems like qmake, qbs or CMake. Which are you using?


For qmake, I couldn't reproduce this in a quick test with two files names format.cc and ostream.cc .


Regards


Kai

________________________________
From: Qt-creator <qt-creator-bounces+kai.koehne=qt.io at qt-project.org> on behalf of Morton Lin <kemen209 at gmail.com>
Sent: Saturday, July 8, 2017 10:02:27 AM
To: qt-creator at qt-project.org
Subject: [Qt-creator] qmake will not build c++ file named something like format.cc and ostream.cc

Hi All,

I currently want to use spdlog(https://github.com/gabime/spdlog) in my qt project. It contains two file named : format.cc and ostream.cc. The Qt Creator will not build these two file even if i put it in my pro file. Debugging show that it even not in the Makefile. After i struggled after some time, i found out that if i changed the file name, all things worked out.

Is this behavior designed in this way? or there is bug? If it's by designed, what' the reason here?


Thanks
Yun


Env:

Qt 5.9.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 7.0.2 (clang-700.1.81) (Apple)) on "cocoa"
OS: macOS Sierra (10.12) [darwin version 16.6.0]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
Environment:
Features: QT_NO_EXCEPTIONS QT_NO_OPENSSL

Qt Creator 4.3.1
Based on Qt 5.9.0 (Clang 7.0 (Apple), 64 bit)
>From revision bfd818b2b1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20170719/586f4b01/attachment.html>


More information about the Qt-creator mailing list