error LNK2022: metadata operation failed (80131187)

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() {}
 

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