Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

errors building 6.0 project in c++ .net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Richter - 13 Nov 2003 20:40 GMT
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] - 13 Nov 2003 23:22 GMT
> I have a working 6.0 project.  unicode, mfc in static library, WinMain
> is the entry proc ...
[quoted text clipped - 10 lines]
> in any of my source files. Why is the .NET compiler looking for that
> file?

Because your code references it.  This file contains the implementation of
"classic IOSTreams".

> 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?

"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
YuGa - 23 May 2005 10:56 GMT
And what about the last error?
- i have it also...

thanks.

--
YuGa


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.