Running 'gcc' on C++ source file on Linux gives “cc1plus: out of memory allocating …” error message

前端 未结 2 1569
野的像风
野的像风 2020-12-04 01:20

I encountered a puzzling problem when compiling a C++ source file using \'gcc\' on Ubuntu. Having solved the problem I would like to publish it here to save others the head

2条回答
  •  不知归路
    2020-12-04 02:22

    I had the same problem in compiling a C++ program with a MAKEFILE.

    I found an easy way to get rid of this problem and it is delete the existing binary file from the previous compile.

    I could not identify the origin of the problem but That worked for me.

提交回复
热议问题