Why the LIB environment variable has been added, but the library file cannot be called when compiling with cl.exe?

View library files by echo %LIB%

It is found that the library file exists normally

The order of added library files is also important

  • Put the most important library file on top
## D:\Program\VisualStudio2022\SDK\ScopeCppSDK\vc15\VC\lib

after that it will be fine

3761)]

Guess you like

Origin blog.csdn.net/u014723479/article/details/130798878