|
| errors building 6.0 project in c++ .net |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.languages.vc.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
| Steve Richter |
| GOOD ANSWER |
I have a working 6.0 project. unicode, mfc in static library, WinMain is the entry proc ...
I open the project in .NET, it is converted ok, now in the build I am getting errors.
The first error I get is after a change to an object file and then a build: LINK: fatal error LNK1104: cannot open file 'libcimtd.lib'
looking on my system, that file only exists in the visual studio 6.0 directory. I dont see it in any project settings, and it is not found in any of my source files. Why is the .NET compiler looking for that file?
then I compile another .CPP file in the project and the compiler says #include <iostream.h> is no good, file not found. that #include just happens to be hanging out in my code and is not needed, but if I do need it, what is its replacement?
and lastly, after a complete rebuild, I get the following:
Compiling resources... C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include/atlconv.h(22) : error RC2188: C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include/atlalloc.h(361) : fatal error RC1017: invalid integer constant expression
when I double click on the error message, the editor pops me into atlconv.h and positions the cursor at the #error statement below:
#ifndef __cplusplus #error ATL requires C++ compilation (use a .cpp suffix) #endif
any ideas what this error is all about? my .NET project is set to "not using ATL".
thanks,
Steve Richter
|
|
|
| |
|
|
| |
| |
| Carl Daniel [VC++ MVP] (VIP) |
Steve Richter wrote: [Original message clipped]
Because your code references it. This file contains the implementation of "classic IOSTreams".
[Original message clipped]
"Classic IOStreams" are no longer supported - you need to #include <iostream>, and make a few changes to your code to use ISO Standard IOStreams.
-cd
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|