G
gromit
I am having problems incorporating STL into managed code and get a
linking error on which there seems to be very little documentation.
The problem seems to lie in the passing of STL iterators to a managed
class method. I have used STL elsewhere with managed code without
problem but i can't find a way through this one - perhaps it isn't
possible?
The error is as follows:-
Linking...
FileComparisonControl.obj : error LNK2022: metadata operation failed
(80131187) : Inconsistent method declarations in duplicated types
(types: CCompareEngine; methods: OutputText): (0x06000008).
LINK : fatal error LNK1255: link failed because of metadata errors
The offending code ....
in header file....
#include <map>
class CMessage {
public:
CMessage() {}
linking error on which there seems to be very little documentation.
The problem seems to lie in the passing of STL iterators to a managed
class method. I have used STL elsewhere with managed code without
problem but i can't find a way through this one - perhaps it isn't
possible?
The error is as follows:-
Linking...
FileComparisonControl.obj : error LNK2022: metadata operation failed
(80131187) : Inconsistent method declarations in duplicated types
(types: CCompareEngine; methods: OutputText): (0x06000008).
LINK : fatal error LNK1255: link failed because of metadata errors
The offending code ....
in header file....
#include <map>
class CMessage {
public:
CMessage() {}