[Qt-creator] Including MinQW system headers

Bryce Schober bryce.schober at gmail.com
Wed Mar 10 17:11:02 CET 2010


FYI, my probably was actually my own time.h in one of my added include
paths. I see that the GCC documentation says that the -I option adds include
paths ahead of the system includes, but I always thought that using the
angle-bracket form of #include only search system include paths, not user
include paths. Apparently that's not true. Does anyone have any
clarification to offer?

On Thu, Mar 4, 2010 at 9:11 AM, Bryce Schober <bryce.schober at gmail.com>wrote:

> I'm trying to use Qt creator on windows to build a project with
> pre-existing C files that include the standard system headers <time.h> and
> <sys/time.h> for functions like gmtime() and strftime(). I have set up my
> project as a Qt console application. The compilation doesn't complain about
> the included headers, but complains that my call of gmtime() is an implicit
> declaration.. I dug around in the install directory, and found
> mingw/include/time.h. I actually even put some random text at the beginning
> of the header, even before the include guards to see if it failed, and it
> doesn't. It seems like something in the build tool-chain is silently
> ignoring my inclusion of the system time headers. Any suggestions here?
>

-- 
Bryce Schober
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100310/b973bf07/attachment.html 


More information about the Qt-creator-old mailing list