G
Gary Hughes
I'm getting the following error when attempting to link a
managed C++ dll. I can't find any reference to these
errors with google. Can anyone help? I've included the
class definition causing the errors below.
Everything compiles fine and all the types are defined, it
appears that the template type
itga:rder_collection::iterator is causing the trouble.
Gary.
Compiling...
OrderEnumerator.cpp
Linking...
Creating library z:\bin\ITGAdotnetd.lib and object
z:\bin\ITGAdotnetd.exp
OrderEnumerator.obj : error LNK2022: metadata operation
failed (80131187) : Inconsistent method declarations in
duplicated types (types: OrderEnumerator; methods: .ctor):
(0x06000001).
OrderEnumerator.obj : error LNK2022: metadata operation
failed (80131188) : Inconsistent field declarations in
duplicated types (types: OrderEnumerator; fields:
m_current): (0x04000013).
LINK : fatal error LNK1215: metadata operation failed
(80131130) :
Build log was saved
at "file://z:\src\desk\client\dotnet\Debug\BuildLog.htm"
ITGAdotnet - 3 error(s), 0 warning(s)
---------------------------------------------------------
public __gc class OrderEnumerator : public
System::Collections::IEnumerator
{
public:
OrderEnumerator(const itga:rder_collection_ptr&
collection,
const
itga:rder_collection::iterator& position);
~OrderEnumerator();
__property System::Object* get_Current();
bool MoveNext();
void Reset();
private:
itga:rder_collection_ptr* m_orders;
itga:rder_collection::iterator* m_current;
};
managed C++ dll. I can't find any reference to these
errors with google. Can anyone help? I've included the
class definition causing the errors below.
Everything compiles fine and all the types are defined, it
appears that the template type
itga:rder_collection::iterator is causing the trouble.
Gary.
Compiling...
OrderEnumerator.cpp
Linking...
Creating library z:\bin\ITGAdotnetd.lib and object
z:\bin\ITGAdotnetd.exp
OrderEnumerator.obj : error LNK2022: metadata operation
failed (80131187) : Inconsistent method declarations in
duplicated types (types: OrderEnumerator; methods: .ctor):
(0x06000001).
OrderEnumerator.obj : error LNK2022: metadata operation
failed (80131188) : Inconsistent field declarations in
duplicated types (types: OrderEnumerator; fields:
m_current): (0x04000013).
LINK : fatal error LNK1215: metadata operation failed
(80131130) :
Build log was saved
at "file://z:\src\desk\client\dotnet\Debug\BuildLog.htm"
ITGAdotnet - 3 error(s), 0 warning(s)
---------------------------------------------------------
public __gc class OrderEnumerator : public
System::Collections::IEnumerator
{
public:
OrderEnumerator(const itga:rder_collection_ptr&
collection,
const
itga:rder_collection::iterator& position);
~OrderEnumerator();
__property System::Object* get_Current();
bool MoveNext();
void Reset();
private:
itga:rder_collection_ptr* m_orders;
itga:rder_collection::iterator* m_current;
};