[Qt-creator] Including MinQW system headers

Bryce Schober bryce.schober at dynonavionics.com
Thu Mar 4 18:11:44 CET 2010


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/20100304/26b652eb/attachment.html 


More information about the Qt-creator-old mailing list