Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
balaji-ch opened this issue Dec 8, 2021 · 0 comments

Comments

@balaji-ch
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant