khamake icon indicating copy to clipboard operation
khamake copied to clipboard

Too many assets on native

Open sh-dave opened this issue 7 years ago • 3 comments

C:\...somethingsomething...\build\windows-build\Sources\src\kha\_Assets\SoundList.cpp : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

Khamake (Koremake probably as well) needs an option to pass additional compiler/linker flags. Currently there only is 'addCDefine' for preprocessor arguments.

sh-dave avatar Mar 26 '18 12:03 sh-dave

/bigobj is now the default (only downside I see mentioned in the internetz is a lack of compatibility with VS < 2005). Should add an option for compiler arguments nonetheless...

RobDangerous avatar Oct 09 '18 15:10 RobDangerous

I don't actually run into this issue anymore, as i use the { notInList } khamake option for 99% of our assets now. If this change doesn't affect anything else negatively keep it in, otherwise you could also revert it.

sh-dave avatar Oct 09 '18 21:10 sh-dave

But yesterday I ran into that issue when compiling Krom. Also taught Visual Studio to default to 64 bit compilers because of that. Visual Studio by default doesn't like big projects.

RobDangerous avatar Oct 10 '18 08:10 RobDangerous