I have a problem with Qt Creator or one of its components.
I have a program that requires a lot of memory (about 4 GB), and I use calloc to allocate it. If I compile C code using mingw / gcc (without using the Qt-framework), it works, but if I compile it in Qt Creator (with C code embedded in the Qt structure using C ++) using the mingw / gcc toolchain calloc returns a null pointer.
I already searched and found the qt-pro QMAKE_LFLAGS += -Wl,--large-address-aware , which worked in some cases (about 3.5 GB), but if I switch to 4 GB, it only works with C code compiled with gcc and not with Qt.
How can I allocate the required amount of memory using calloc when compiling with Qt Creator?
source share