- Try increasing the dynamic memory allocation threshold from its current value. See Control Memory Allocation for Variable-Size Arrays
- Ensure that your compiler can handle memory allocation above 32-bit addresses.
- If your compiler supports data above 4GiB, you might have to change certain compiler options. See StackOverflow ld: 32-bit RIP.
MATLAB Coder - ld: 32-bit RIP relative reference out of range
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I'm trying to compile MATLAB functions to C++ using MATLAB Coder and I'm getting the following error message:
ld: 32-bit RIP relative reference out of range
I should mention that when running the entrypoint function whitin MATLAB it consumes ~15GB of RAM because it works on large matrices.
I'm under OSX and I use clang++ shipped with the lastest version of XCode. MATLAB version is 2020a.
I don't have experience with C++ compiling and linking proces so I'm a bit out of clue on how to solve this error. If anyone can provide explainations and ideas to fix it will be really helpfull.
Thanks.
0 Kommentare
Antworten (1)
Adit Calambur
am 21 Jul. 2021
Hi Vadim,
To summarise your issue, you are unable to generate code for an entry-point function of considerable size. On further reading about this error message, it seems as if your compiler is having trouble allocating memory above a certain threshold. Possible solutions might be:
Siehe auch
Kategorien
Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!