且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

LINK:致命错误LNK1248:映像大小超过最大允许大小(80000000)

更新时间:2021-07-25 16:12:30

看起来即使你在构建一个x64可执行文件,对于x86构建。你不能这么做。

It appears that even when you're building an x64 executable, the linker has limits more appropriate for an x86 build. Not much you can do about that.

唯一的解决方案是从堆中分配它。这应该与您的原始声明相同。

The only solution is to allocate it from the heap. This should be usable in the same way as your original declaration.

typedef float partial_array[1600][811];
std::unique_ptr<partial_array> array = new partial_array[200];