超过最大允许尺寸(80000000)

1 c max linker-errors

可能重复:
LINK:致命错误LNK1248:图像大小超过最大允许大小(80000000)

#define no_cust 4000
#define no_plant 50  
#define no_sup 2000  
#define No_population 100
#define Iteration 3

struct Output2{
    long double RandomZhj[No_population];
    double Population[No_population];   
    long double result;
    long double cost_sup_to_plant;
    long double velocity[No_population];        
}Zhj[no_sup][no_plant],Whj[no_sup][no_plant],Vhj_t1[no_sup][no_plant];
Run Code Online (Sandbox Code Playgroud)

当我运行程序时,它显示:

致命错误LNK1248:图像尺寸(818D4000)超出最大允许尺寸(80000000)

我想知道如何更正我的程序.

Oli*_*rth 7

不要像那样创建大规模的数组.使用动态分配(即malloc/ free代替).