Compile and run the C/C ++ process in Windows.
1. First, confirm that VS or VC ++ IDE is installed on the computer;
2. Modify Environment Variables
In System Properties-advanced-environment variables-user variables:
Edit PATH to add the cl compiler path d: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ bin
And the path D: \ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE of MSPDB60.DLL, separated by semicolons.
New Variable INCLUDE: D: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ include
New Variable LIB: D: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ lib
Note: The 64-bit system may be the path of D: \ Program Files (x86.
3. Run cl at the command prompt (CMD). If an error occurs, LINK: fatal error LNK1104: the file cannot be opened.
"Kernel32.lib", set C: \ Program Files \ Microsoft SDKs \ Windows \ v7.0A \ Lib
Copy kernel32.lib under the directory to the D: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ lib directory.