Skip to content

Compiler is out of heap space - MSVC 2017 #4819

@ssooffiiaannee

Description

@ssooffiiaannee

OS : Windows 11

cd poco
cd cmake-build
cmake .. -G "Visual Studio 15 2017"
cmake --build . --config Release

I get the following build error :

  ODBCStatementImpl.cpp
  Parameter.cpp
  Preparator.cpp
  SessionImpl.cpp
  TypeInfo.cpp
E:\poco\Foundation\include\Poco/Tuple.h(3128): fatal error C1060: compiler is out of heap space [E:\poco\cmake-build\Data\ODBC\DataODBC.vcxproj]
  Unicode.cpp

I tried lowering the memory allocation limit with the /Zm flag, as more heap space memory is allocated, but I still can't build the project.
This link suggest the following :

Eliminate unnecessary include files.

Eliminate unnecessary global variables, for example, by allocating memory dynamically instead of declaring a large array.

Eliminate unused declarations.

Split the current file into smaller files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions