Skip to content

number of sections exceeded object file format limit: compile with /bigobj #1255

Answered by Green-Sky
rudiHammad asked this question in Q&A
Discussion options

You must be logged in to vote

The #include directive that c++ inherited from c copy pastes the contents of the file at the place #include is called.
Right next to entt/entt.hpp there is also entt/fwd.hpp which provides forward declarations. Then, there are all the subfolders with specific features that you might be using.

https://github.com/skypjack/entt/tree/master/src/entt

Here is the top level entt.hpp, as you can see it includes all the files in the subfolders. Instead you can include eg: entt/entity/registry.hpp if you are mostly using just the ecs part.
Also take a look at the entt/fwd.hpp, it itself includes a buch of forward declaring files in the subfolders, so you probably don't need them all.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@rudiHammad
Comment options

@Green-Sky
Comment options

@rudiHammad
Comment options

@Green-Sky
Comment options

Answer selected by rudiHammad
@skypjack
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
3 participants