Skip to content

fatal error C1128 while compiling nnef.cpp in debug mode in VisualStudio 2015 #46

@balaji-ch

Description

@balaji-ch

NNEF fails when compiled in debug mode but compiles in release mode.
\OpenVX-sample-impl\kernels\NNEF-Tools\parser\cpp\src\nnef.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

Fix
Append /bigobj to ADD_C_FLAGS_DEBUG in OpenVX-sample-impl\cmake_utils\CMake_windows_tools.cmake
set (ADD_C_FLAGS_DEBUG "-D _DEBUG /RTC1 /MTd /bigobj") #/MTd /Gm
and build will work fine

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