OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

'fatal error C1128: number of sections exceeded object file format limit' under MSVC2015


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Jason Beverage
Guest





PostPosted: Wed Apr 18, 2018 7:59 pm    Post subject:
'fatal error C1128: number of sections exceeded object file format limit' under MSVC2015
Reply with quote

Hi Robert,

I'm compiling the master in debug with MSVC 2015 and running into this issue again:  http://forum.openscenegraph.org/viewtopic.php?t=16012&start=0&postdays=0&postorder=asc&highlight=


This time it's with Geode.obj


I've added /bigobj just to get it building here locally.  Not sure if there is anything else we can take out of the headers to slim it down or not.


This is my first time seeing this issue so I'm not 100% sure if it's a good idea to just enable /bigobj all the time or not.


Jason

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11758

PostPosted: Thu Apr 19, 2018 7:14 pm    Post subject:
'fatal error C1128: number of sections exceeded object file format limit' under MSVC2015
Reply with quote

Hi Jason,

On 18 April 2018 at 20:59, Jason Beverage <> wrote:
Quote:
I'm compiling the master in debug with MSVC 2015 and running into this issue
again:
http://forum.openscenegraph.org/viewtopic.php?t=16012&start=0&postdays=0&postorder=asc&highlight=

This time it's with Geode.obj

I've added /bigobj just to get it building here locally. Not sure if there
is anything else we can take out of the headers to slim it down or not.

This is my first time seeing this issue so I'm not 100% sure if it's a good
idea to just enable /bigobj all the time or not.

I don't have any VisualStudio expertise so have to defer to Windows
devs as how best to guide the build with VisualStudio. So if you feel
adding /bigobj is required then submit a PR to add this.

What are the cons about enabling /bigobj?

Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sam
Guest





PostPosted: Thu Apr 19, 2018 8:44 pm    Post subject:
'fatal error C1128: number of sections exceeded object file format limit' under MSVC2015
Reply with quote

Hi Robert,

Enabling -bigobj just changes the address space for obj files. The default is 2^16 and /bigobj will enable 2^32. The only con that I'm aware of is linker's that shipped prior to Visual C++ 2005 cannot read .obj files that were produced with /bigobj.


https://msdn.microsoft.com/en-us/library/ms173499.aspx



Looks like most of the projects now force it on in CMAKE.


Thanks, Sam






On Thu, Apr 19, 2018 at 1:14 PM, Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi Jason,

On 18 April 2018 at 20:59, Jason Beverage < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
I'm compiling the master in debug with MSVC 2015 and running into this issue
again:
http://forum.openscenegraph.org/viewtopic.php?t=16012&start=0&postdays=0&postorder=asc&highlight=

This time it's with Geode.obj

I've added /bigobj just to get it building here locally.  Not sure if there
is anything else we can take out of the headers to slim it down or not.

This is my first time seeing this issue so I'm not 100% sure if it's a good
idea to just enable /bigobj all the time or not.

I don't have any VisualStudio expertise so have to defer to Windows
devs as how best to guide the build with VisualStudio.  So if you feel
adding /bigobj is required then submit a PR to add this.

What are the cons about enabling /bigobj?

Robert.
_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Positioning an object based on the Vi... Takarashy General 0 Wed May 23, 2018 3:14 pm View latest post
No new posts FbxPlugin: Check existance of file be... bbjorn Submission 1 Thu May 03, 2018 10:58 am View latest post
No new posts Texture2DArray Internal Texture Forma... Tare General 7 Wed Apr 04, 2018 10:35 am View latest post
No new posts set cullface mode in osg file Meldryt General 1 Fri Mar 02, 2018 10:07 am View latest post
No new posts Texture Buffer Object Initialization ... EonStrife General 0 Tue Feb 27, 2018 7:53 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP