Is there a Windows/MSVC equivalent to the -rpath linker flag?

后端 未结 3 424
渐次进展
渐次进展 2020-12-04 17:30

On Linux/GCC I can use the -rpath flag to change an executables search path for shared libraries without tempering with environment variables.

Can this also be acco

3条回答
  •  情歌与酒
    2020-12-04 18:22

    The search order for DLLs in Windows is described on this page on MSDN. If you're using run-time dynamic linking, you can specify the folder when you call LoadLibrary.

提交回复
热议问题