使用gcc编译时出错1918

时间:2021-02-05 06:57:43

I was getting below error while compiling a code base. Does anyone know about this error?

编译代码库时,我遇到了错误。有谁知道这个错误?

<Filename> : error #1918: out of resources (internal variable limit exceeded)

1 个解决方案

#1


This error generally comes when the space for local variable in your function is too large.

当函数中局部变量的空间太大时,通常会出现此错误。

As a solution you need to reduce the size or may be the number of variables on stack, may be by using malloc ie, by using dynamic allocation.

作为一种解决方案,您需要减小大小或可能是堆栈上的变量数量,可以使用malloc即使用动态分配。

#1


This error generally comes when the space for local variable in your function is too large.

当函数中局部变量的空间太大时,通常会出现此错误。

As a solution you need to reduce the size or may be the number of variables on stack, may be by using malloc ie, by using dynamic allocation.

作为一种解决方案,您需要减小大小或可能是堆栈上的变量数量,可以使用malloc即使用动态分配。