R
Ray Tayek
hi, i am teaching a class using visual studio 2003 in the labs at
school and trying to get some pure c++ into a dll so i can sic nunit on
it.
trying to put the code below into a .net class library gets unresolved
externs:
pure error LNK2020: unresolved token (0A000006) _CxxThrowException
pure error LNK2020: unresolved token (0A000015) delete
pure fatal error LNK1120: 2 unresolved externals
i have been away from the m$ world for many years and have no clue
how to resolve this. this has to do with linking in some static
flavour of the crt lib (i think). there are some clues at
http://support.microsoft.com/?kbid=814472, but it looks like a
research project.
what i would like to do is to package the pure c++ code into a pure
c++ dll ideally, but *any* kind of assembly would be fine. and then
put the managed tests that nunit will find into another assembly. not
sure how to expose the public api from c to the managed code.
is anyone at all familiar with this?
any pointers will be appreciated.
thanks
#pragma once
#include <iostream>
#include <string>
#include <map>
namespace pure {
class Foo { std::map<std::string *,Foo *> m; };
}
school and trying to get some pure c++ into a dll so i can sic nunit on
it.
trying to put the code below into a .net class library gets unresolved
externs:
pure error LNK2020: unresolved token (0A000006) _CxxThrowException
pure error LNK2020: unresolved token (0A000015) delete
pure fatal error LNK1120: 2 unresolved externals
i have been away from the m$ world for many years and have no clue
how to resolve this. this has to do with linking in some static
flavour of the crt lib (i think). there are some clues at
http://support.microsoft.com/?kbid=814472, but it looks like a
research project.
what i would like to do is to package the pure c++ code into a pure
c++ dll ideally, but *any* kind of assembly would be fine. and then
put the managed tests that nunit will find into another assembly. not
sure how to expose the public api from c to the managed code.
is anyone at all familiar with this?
any pointers will be appreciated.
thanks
#pragma once
#include <iostream>
#include <string>
#include <map>
namespace pure {
class Foo { std::map<std::string *,Foo *> m; };
}