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 <[email protected]>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
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
