I tried to add the following in the .pro
file of our project:
win32 {
...
QMAKE_LFLAGS_WINDOWS += -Wl,--large-address-aware
}
I get an error LINK : warning LNK4044: Nicht erkannte Option /Wl,--large-address-aware; wird ignoriert.
Translation: unrecognised option /Wl,--large-address-aware; gets ignored.
Before that I tried to find out where to add linker options but it seems to be just a normal variable to put in the .pro
file. I also searched for a searchcode entry in which the option is part of the .pro
file.
I added the options to increase memory limit for the 32 bit application according to this post...
How to apply the option functioning?
The linker options in the .pro
file are for MinGW but I am using msvc so...
I had to add the linker flags just like in the msdn documentation with a slash and the linker option in capital letters. So for LARGEADDRESSAWARE
:
QMAKE_LFLAGS_WINDOWS += /LARGEADDRESSAWARE