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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top