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++ / October 2004

Tip: Looking for answers? Try searching our database.

How do I use <iostream> in .NET Class Library project?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Russell Mangel - 12 Oct 2004 06:56 GMT
After creating a new .NET Class Library project, I then add the header file:

#include <iostream>

(I tried adding in my main .cpp file and also tried in stdafx.h file.)

Doesn't work, and I get the following error messages:
LNK2020: unresolved token (0A000006) _CxxThrowException
LNK2020: unresolved token (0A000015) delete
fatal error LNK1120: 2 unresolved externals

I would like to use cout on the un-managed side of things.

I am writing some un-managed code and some managed code together, and so I
would like to use cout and or printf().

Can someone help?

Russell Mangel
Las Vegas, NV
Bredal Jensen - 12 Oct 2004 15:57 GMT
you probably might want to read this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;q154419

use :
#include <use_ansi.h> instead...

> After creating a new .NET Class Library project, I then add the header file:
>
[quoted text clipped - 16 lines]
> Russell Mangel
> Las Vegas, NV

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.