There is a project I would like to build directly with the developer command prompt for VS 2017.
The dependent library is not found and a link error.
I have the library itself, but how can I link it to a developer command?
The project you want to build is MRuby 2.0.1 and the dependent library is onigmo_s.lib.
c++ visual-studio
Do not use IDE to link third-party libraries at command prompts
I interpreted it as .
Makefile
or msbuild
to add options for link.exe
to the linking stage.Or write #pragma comment(lib, "...lib")
in the source.
Specify additional library links—Specify the library name directly.
link<Various Designations 1>onigmo_s.lib<Various Designations 2>
Library directory specification—Add the command line /LIBPATH:<dir>
.
link/LIBPATH: "C:\projects\onigmo"
Or
cl<Various>/LINK/LIBPATH: "C:\projects\onigmo"
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
582 PHP ssh2_scp_send fails to send files as intended
619 Uncaught (inpromise) Error on Electron: An object could not be cloned
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.