Click to See Complete Forum and Search --> : Porting from VC++ 6.0 to VC .Net Error D2029


dekaniga2002
December 5th, 2002, 05:52 AM
Hi ,
I have encountered a strange problem porting a proj from VC++6 to VC++ .Net. I have mentioned the steps below. Please let me know if u have faced anything like this. There is no documentation on MS websites for this :(. Looks like a bug in their porting engine or compiler.


Build a library in VC++6.0
1. Open new project as static library.
2. Add source files to the project.
3. Click Project and then click Settings.
4. Add the compiler option /Zm200 under Project Options.
5. Build the library.
It builds and gives the output as .lib.

Port the VC++ project to VC++.NET

1. Open the project in VC++.NET
2. Computer prompts you to convert to the Visual C++ 7.0 project format Click Yes Button.
3. Build the library.
Compiler may give the compilation Error D2029.

Compiler Options for VC++ 6.0 are:

/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /Fp"Debug/testlib.pch" /Yc"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /Zm200 /c

After porting to VC++.NET the compiler options are:
You can see the compiler options from either Buildlog.htm or .vcproj file.

/Od /D "WIN32" /D "_DEBUG" /D "_LIB" /D "_MBCS" /FD /EHsc /RTC1 /MLd /Yc"stdafx.h" /Fp".\Debug/testlib.pch" /Fo".\Debug/" /Fd".\Debug/" /W3 /c /ZI /TP /Zm200 /Zm200 /Zm200…

Some times the above option is generated multiple times and if u comment the /zm200 it seems to compile OK.


Thanks
dekaniga