Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Have VS always compile a file

Shulou Source: shulou.com Published: 2022-06-03 05:50:41 11月23日 Update

If you want the program to always show the build time, you usually use the following methods:

Const char* LBuildStamp::getBuildDateTime ()

{

Return _ DATE__ "" _ _ TIME__

}

This is not enough, because the compiler will not compile the file again unless clean build, so it always gets the time when the file was last compiled.

You can have vs always compile the file by deleting the obj file corresponding to the source file before it is generated. As shown below:

Tags: File compile method time not enough again just source file program compiler previous generate Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei vpn Shulou Tech Info Shulou Information OPPO Reno