I compile my C++ code with cl. Then when I try to run it, it hangs for ~10 seconds, then runs. But this only happens on the first run after the compilation process. The subsequent calls run without any problems. But if I compile the code again, then the first run still hangs for a bit.
I have VS 2017 installed and call "VC\Auxiliary\Build\vcvarsall.bat" to use cl. I'm using command line to compile and run my code. And this is where all the problems occur. If I code and compile in Visual Studio, there's no stalling problem. It only happens when I use command line and I don't know why.
#include <stdio.h>
int main()
{
printf("Testing\n");
return 0;
}
Compilation code
cl main.cpp