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

  • Thread starter Thread starter Russell Mangel
  • Start date Start date
R

Russell Mangel

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
 
Back
Top