spirit-po | localization using GNU gettext po files , based on boost | Internationalization library
kandi X-RAY | spirit-po Summary
kandi X-RAY | spirit-po Summary
A C++ library for localization using GNU gettext po files, based on boost spirit
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spirit-po
spirit-po Key Features
spirit-po Examples and Code Snippets
Community Discussions
Trending Discussions on spirit-po
QUESTION
I'm working on a project using libraries handled through vcpkg. As compile time wasn't that great, I did some headers clean up and configured the project to use precompiled headers, putting STL and vcpkg headers inside.
I started to run into the infamous C1076, C3859 and C1060 errors, and a quick check to the generated pch showed me a massive 1.2GB file ...
I ran a build using the /showIncludes switch, and it appears that spirit-po, a Boost based library that I use for translations, references more than 2600 Boost headers. (My project just has 70 files, with nothing fancy) It's the only Boost based library used in the project.
Just to be sure this was the culprit, I removed everything but the spirit-po files from the pch :
...ANSWER
Answered 2021-Jan-16 at 17:49Header only libraries work because there are no details left out of those headers.
Precompiled headers contain all the compiled information of the headers before start of the translation unit.
A large part (the majority) of boost libraries are header only. To add insult to injury, they're highly generic meaning there will be many templates and their instantiations.
1 + 2 + 3 are the perfect storm. If the size is a concern, your better bet is to shield boost from your headers and include them in the select translation units that actively depend on them.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spirit-po
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page