Hi,
LINK does not accept cpp, .c as parameters. Files should be placed after cl.
Also check the example:
The /link option and its linker options must appear after any file names and CL options.
cl /W4 /EHsc hello.cpp there.obj /link /VERSION:3.14
LINK uses the following types of input files:
- .obj files
- .netmodule files
- .lib files
- .exp files
- .def files
- .pdb files
- .res files
- .exe files
- .txt files
- .ilk files
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.