FAQ Database Discussion Community


Is there a cleaner way to handle compiler errors C1076 and C3859?

c++,precompiled-headers
Today I've been adding some library headers to our precomp.h file. Then I tried to recompile in debug and got those two errors (spawned from a boost include): error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm310' or greater fatal error C1076:...

Can Precompiled Headers Be Used Like Libraries?

c++,precompiled-headers
Is it possible to use Precompiled Headers like a library is used? For example can I create a header containing preprocessor like so: #include <iostream> #include <string> #include "boost_headers.hpp" Compile it into a PCH and then distribute the PCH without having to distribute the headers files used to create it?...

msvc precompiled header warning suppress

c++,visual-c++,compiler-warnings,precompiled-headers
In my C++ project, I use precompiled headers as a compile time optimization. However, when I enable /Wall option in the compiler settings, I am not able to suppress any of warnings in the precompiled header file. Header File: #ifndef _PRECOMPILED_H #define _PRECOMPILED_H #pragma warning(push, 0) #pragma warning(disable: 4514) #include...

Exporting a visual studio c++ project for use in another project, without revealing the .cpp and .h source files

c++,visual-studio,static-libraries,precompiled-headers
I have a visual studio project called "TopSecretProject" that I want to share with an anonymous developer user, without revealing any of my code, including the header files (Since my .h files include the structure of my project ant the user cannot know about it). The user should receive: A...