Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Buildtime defines such bmYEAR. Is it nessessary?
Buildtime defines such bmYEAR. Is it nessessary? [message #26236] Fri, 16 April 2010 10:08 Go to next message
Shire is currently offline  Shire
Messages: 41
Registered: September 2006
Location: Russia, Yamal peninsula
Member
CppBuilder::IncludesDefinesTargetTime()
Time t = GetSysTime();
cc << " -DbmYEAR=" << (int)t.year;
cc << " -DbmMONTH=" << (int)t.month;
cc << " -DbmDAY=" << (int)t.day;
cc << " -DbmHOUR=" << (int)t.hour;
cc << " -DbmMINUTE=" << (int)t.minute;
cc << " -DbmSECOND=" << (int)t.second;

What is role of these defines? When I use precompiled header, compiler produses warnings, that defines are changed.
Is it possible to remove them? For build date/time there are __DATE__ and __TIME__.
Re: Buildtime defines such bmYEAR. Is it nessessary? [message #26601 is a reply to message #26236] Fri, 14 May 2010 15:15 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Shire wrote on Fri, 16 April 2010 04:08

CppBuilder::IncludesDefinesTargetTime()
Time t = GetSysTime();
cc << " -DbmYEAR=" << (int)t.year;
cc << " -DbmMONTH=" << (int)t.month;
cc << " -DbmDAY=" << (int)t.day;
cc << " -DbmHOUR=" << (int)t.hour;
cc << " -DbmMINUTE=" << (int)t.minute;
cc << " -DbmSECOND=" << (int)t.second;

What is role of these defines? When I use precompiled header, compiler produses warnings, that defines are changed.
Is it possible to remove them? For build date/time there are __DATE__ and __TIME__.


Well, if you would like to get e.g. Date, you would have to parse __DATE__. This way you can directly use Date constructor...
Previous Topic: Debug watch not showing arrays?
Next Topic: MSC10 compilation issues
Goto Forum:
  


Current Time: Fri Mar 29 12:03:38 CET 2024

Total time taken to generate the page: 0.02035 seconds