Canopus
Canopus

Reputation: 7457

Linking to a Large address aware DLL

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?

Upvotes: 7

Views: 3265

Answers (2)

salim b.
salim b.

Reputation: 31

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?)

Upvotes: 3

Naveen
Naveen

Reputation: 73503

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

Upvotes: 10

Related Questions