From: Earnie B. <ea...@us...> - 2012-09-30 15:49:28
|
On Sun, Sep 30, 2012 at 10:18 AM, Day, Julian <jc...@ma...> wrote: > Hi, > > I've been looking to add serialization to my project via boost's > serialization library. This was working for a time, but as I added > serialization capabilities to more and more classes, I eventually hit a > wall, and could not compile my project anymore: > > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/as.exe: > obj\Debug\engine\serialization\source\TemplateSerialization.o: too many > sections (37616) > C:\Users\Julian\AppData\Local\Temp\ccWiA9Ih.s: Assembler messages: > C:\Users\Julian\AppData\Local\Temp\ccWiA9Ih.s: Fatal error: can't write > obj\Debug\engine\serialization\source\TemplateSerialization.o: File too big > c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/as.exe: > obj\Debug\engine\serialization\source\TemplateSerialization.o: too many > sections (37616) > C:\Users\Julian\AppData\Local\Temp\ccWiA9Ih.s: Fatal error: can't close > obj\Debug\engine\serialization\source\TemplateSerialization.o: File too big > Process terminated with status 1 (5 minutes, 28 seconds) > 0 errors, 0 warnings > > Has anyone had this sort of error before? I do have a lot of types of > objects that need to be serialized (a few hundred classes, anyway), but it > seems like the build system should be able to handle the code generated in > this sort of situation. Is there something I'm likely doing wrong? You've probably hit a hard memory limit such that the object image is greater than 2GB. There is no work around for a hard limit other than to reduce the size of the object is some fashion. -- Earnie -- https://sites.google.com/site/earnieboyd |