Click to See Complete Forum and Search --> : Problems Compiling MFC with VC++ .NET


Cristi762000
July 19th, 2003, 05:58 AM
Hello,
I just installed Visual Studio Architect and I tryed to import a VC 6 project and compile it, the output scrren looks like that:


Compiling...
stdafx.cpp
fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\9466\vc\Compiler\Utc\src\P2\main.c', line 146)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
test1 : error PRJ0002 : error result returned from 'cl.exe'.

Build log was saved at "file://c:\Work\Solution1\test1\Debug\BuildLog.htm"
test1 - 1 error(s), 0 warning(s)


---------------------- Done ----------------------

Build: 0 succeeded, 1 failed, 0 skipped


I tryed the same with the wizard, any MFC project send me the same error. Can anyone help me

Cristi

Wtower
July 21st, 2003, 10:35 AM
Dear Cristi762000,

I didnt have any problems migrating from 6 to .net with my old mfc projects. I would suspect that there was some problem with your installation? Can you try the compilation on a different installation?

Regards,

Wtower

lavachequirit
September 16th, 2004, 05:24 PM
I've got this error today while importing a VC 6 to Dot Net (only in release version). Have done a search on it but none of the solutions helped except for this work around:

Find the function that cause this error by commenting parts of the file and recompile the file
Put #pragma optimize("g", off) just before that function.

I hope this helps

LaVacheQuiRit