4

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...

I use the following Qt Kit: Qt Kit

How to apply the option functioning?

goulashsoup
  • 2,639
  • 2
  • 34
  • 60
  • @eyllanesc I added a complete translation... – goulashsoup Aug 14 '17 at 18:49
  • @eyllanesc Now i get two warnings for both options `LINK : warning LNK4044: unrecognised option /Wl; gets ignored. LINK : warning LNK4044: unrecognised option /-large-address-aware; gets ignored.` – goulashsoup Aug 14 '17 at 19:03
  • @eyllanesc With `"-Wl --large-address-aware"` I have exatly the same error as in my last comment. I added my Qt Kit. – goulashsoup Aug 14 '17 at 19:17
  • I just readed your unedited comment about just trying the first option with capital letters but still the same: `unrecognised option /WL ...` – goulashsoup Aug 14 '17 at 19:33
  • @eyllanesc `WL`: No, thats why I added the info that I want to increase memory and that I just copied it because I couldn't find anything else... – goulashsoup Aug 14 '17 at 19:40
  • I would recommend that you use visual studio and try to activate that flag, maybe that flag is not active in your version of visual. – eyllanesc Aug 14 '17 at 19:44

1 Answers1

2

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
goulashsoup
  • 2,639
  • 2
  • 34
  • 60