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