U
Ulrich Sprick
Hi,
I have to write a managed C++ wrapper around an existing, unmanaged C++
class. First tests suggested it should work, but after adding the complete
unmanaged code, I get the following linker errors:
LINK : error LNK2020: unresolved token (0A00001A) _CxxThrowException
LINK : error LNK2020: unresolved token (0A00001C) exception.__ctor
LINK : error LNK2020: unresolved token (0A00001E) exception.__dtor
LINK : error LNK2020: unresolved token (0A000020) delete
LINK : fatal error LNK1120: 4 unresolved externals
It looks like it has something to do with the use of the STL in the
unmanaged part: As soon as I comment in such lines as
#include <vector>
#include <list>
....I get loads of unresolved externals. Is there a problem with using the
STL in managed C++? I tried the whole day now, but now I ran out of ideas.
Any help greatly appreciated!
Thanks in advance,
ulrich
P.S.: The project is a managed code library (dll).
I have to write a managed C++ wrapper around an existing, unmanaged C++
class. First tests suggested it should work, but after adding the complete
unmanaged code, I get the following linker errors:
LINK : error LNK2020: unresolved token (0A00001A) _CxxThrowException
LINK : error LNK2020: unresolved token (0A00001C) exception.__ctor
LINK : error LNK2020: unresolved token (0A00001E) exception.__dtor
LINK : error LNK2020: unresolved token (0A000020) delete
LINK : fatal error LNK1120: 4 unresolved externals
It looks like it has something to do with the use of the STL in the
unmanaged part: As soon as I comment in such lines as
#include <vector>
#include <list>
....I get loads of unresolved externals. Is there a problem with using the
STL in managed C++? I tried the whole day now, but now I ran out of ideas.
Any help greatly appreciated!
Thanks in advance,
ulrich
P.S.: The project is a managed code library (dll).