Internal compiler error
I'm attempting to compile FreeImage, a C++ library available fromhttp://freeimage.sourceforge.net/, under Visual Studio 2005 Team System Beta 2 on an XP64/AMD64 box.
The C++ compiler is choking reproducibly and consistently as below.I haven't yet attempted to work around it as suggested. If that later proves successful, I'll re-post here.
Should/how I report this to Microsoft? Is this the way? :-)Sorry about the *** formatting.
25>d:\matthew\tcg\FreeImage\Source\FreeImage\PluginIFF.cpp : fatal error C1001: An internal error has occurred in the compiler.
25>(compiler file 'f:\beta2\vctools\compiler\utc\src\P2\p2symtab.c', line 1715)
25> To work around this problem, try simplifying or changing the program near the locations listed above.
25>Please choose the Technical Support command on the Visual C++
25> Help menu, or open the Technical Support help file for more information
Moved to this forum from the VSTS Team System General forum.
You can submit a bug report via the MSDN product feedback center:
http://lab.msdn.microsoft.com/productfeedback
You should definitely report this, but you should also relieve the MS developer from having to download the sources and configure the build.
Recompile PluginIFF.cpp with the /P setting (under Properties->C/C++->Command Line, add this under Additional Options). This will create PluginIFF.i, which you will need to zip and attach to your bug report.
You will probably want to verify that the Internal Compiler Error will occur on the .i file. To do this, drop to the command line, run vcvarsall.bat to configure the environmment: C:\Program Files\Microsoft Visual Studio 8\VC> vcvarsall.bat
And then go to your source code directory, and type cl -Bv -Tp PluginIFF.i -c -EHsc (The EHsc is what I usually need to set to enable exception handling. In general, you might need to add more flags to replicate the project build, but you don't need to specify defines or includes). -Tp means to compile the .i file as a C++ file. -Bv is to verify the compiler version. For 2005 B2, it is 14.00.50215.44.