Linking to a Large address aware DLL

2019-04-28 03:58发布

Suppose I have a DLL which is built with LARGEADDRESSAWARE linker flag set. Now I have an application dynamically linking to this DLL. Does this make my application LARGEADDRESSAWARE?

If not then, does it make sense to have this flag set for any DLL?

2条回答
We Are One
2楼-- · 2019-04-28 04:59

Discussion here seems to indicate /LARGEADDRESSAWARE has no efefct on DLLs and depends totally on the hosting executable.

查看更多
beautiful°
3楼-- · 2019-04-28 04:59

I believe that the flag must be set on the main executable. So no, it does not make sense to set it on a DLL. (A possible exception might be when the DLL is run using runDll?)

查看更多
登录 后发表回答