Visual Studio Hanging when compiling with large header file - visual-studio-2010

I have a large header file with a huge array in it
The header file is roughly 200mb.
When I include it in my project the project hangs when compiling.
I am using Visual studio 2010
Compiling in x64
Is there a setting I am missing?

Related

VS2015 CUDA project compiles and runs but Intellisense cannot find includes

I am running VS2015 community and working with a mixed OpenCV/CUDA code. The project runs as it should but Intellisense squiggles under the include headers. When I right click, it gives this error.
Things I have already tried:
Restarting VS (at least a dozen times).
Deleting the .vs folder in the project folder.
Deleting the *.vc.db in the project folder.
Check the Additional Include Directories
Remove the Additional Include Directories > Fail to compile > Add them back > successfully compiles.
Make sure I am on x64 and Debug. I am using OpenCV 3.2 x64.
Other stackoverflow questions I have already referred with no success
why visual studio editor can not find a header file, when compiler can find it
Visual Studio 2008 oddity with C++ and header files
Visual Studio can't 'see' my included header files
How to rebuild VS2010 IDE Intellisense?
Visual Studio 2015: Intellisense errors but solution compiles
'Additional include directories' in visual studio 2010 doesn't work
Visual Studio 2010 intellisense not recognising additional include directory
Visual Studio 2012 - Intellisense sometimes disappearing / broken
Visual Studio C# IntelliSense not automatically displaying
The problem had to do something with the CUDA build settings in the project. I fixed the problem by moving $(OPENCV_DIR)\include from Additional Include Directories to simply Include Directories.

why visual studio 2010 generated dll size larger?

I have a dll project that was created in VC++ 2008. The released dll file after building this project in VS 2008 is 299kB.
But, when I convert the project to VC++ 2010, the size of the output dll grows significantly!!! (1643kB !!!)
Why is the output dll file generated by Visual Studio 2010 so much larger?
Are there any settings in Visual Studio 2010 which I could edit, to get a smaller output file released?
The /MT flag means you're statically linking in the C runtime library.
Presumably, in your previous project in VS 2008, you were dynamically linking to the runtime library, which will make the output file smaller because it doesn't have to embed all of the required functionality from the C runtime library in your DLL.
The fix is simple, just change the setting to /MD. Dynamic linking is much preferred anyway.

How can i package the Visual Studio 2010 runtime with my .exe and .dll file?

As sort of a hello world attempt, I am compiling a simple EXE that dynamically loads a DLL (which I have also written) using only C++ files, building with Visual Studio 2010. However, when running on a new machine, an error appears that the VS2010 runtime is not present.
Is there a way to package the runtime in my application or DLL so this doesn't occur? Without using an installer program.
Alternatively, is there a way to exclude requiring the runtime at all?
(I am using Visual Studio 2010, but this could really be of interest for all versions)

Visual Studio 2010 and .bsc file

I'm using an open source Mozilla project in Visual C++ 2010. The project requires UNIX based build tools and therefore I cannot create a Visual Studio project for it directly. I must use the command line build files (makefile, configure script, etc) bundled with the project to build the project using cl.exe. (This is due to the fact that some .h files are generated by the make utilities.)
The problem is, without creating a Visual Studio project, how do I browse through the project source files using say the "F12 Go To Definition" feature available in Visual Studio? I know I can generate a .bsc file using the /FR compiler option. But, I also found that the Object Browser in Visual Studio 2010 doesn't seem to support a .bsc file. When I open a .bsc file directly using Visual Studio 2010, it says "Class not registered, Looking for object with CLSID: {D9B3211D-E57F-4426-AAEF-30A806ADD397}.
How do we use a .bsc file under Visual Studio 2010?
Unfortunately BSC is not supported anymore for Visual Studio 2010+
More details: http://connect.microsoft.com/VisualStudio/feedback/details/514470/bsc-files-cannot-be-used

Opening Code Blocks project file (.cbp) in Visual Studio 2008

I'm switching over to Visual Studio 2008 from Code Blocks. I have a project written in Code Blocks, and I'd like to manage it in Visual Studio. The problem is that the project file for the program is in the .cbp file format. Is there any way to get this working in Visual Studio?

Resources