avi123
December 18th, 2003, 02:06 AM
Hello,
I have a COM dll, that I have created using ATL
I added to the project my own interface and class implementing it.
I have a VB client for this client abd everything is working just fine.
now I have a few libraries and I want to use thier functions inside my client.
I want one of my class/interface function to use one of this functions
but I'm not sure how am I supuse to do it, what I did I included the relevant h file and added a reference to the lib in my project
then when I created an instance of the class that is decleared in the lib I got the following likage errors:
MyProject error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in MyLib.lib(MyLib.obj)
and also this kind of error: (for all my functions in MyClass class defined in MyLib lib....)
MyProject error LNK2019: unresolved external symbol "public: __thiscall MyClass::~MyClass(void)" (??1CStockLevels@@QAE@XZ) referenced in function __unwindfunclet$??0MyLib@@QAE@XZ$0
I don't understand what is already defined and what am I suppouse to do to overcome it
Is there another way to add my Lib functionality into this project?
thanks
avi
I have a COM dll, that I have created using ATL
I added to the project my own interface and class implementing it.
I have a VB client for this client abd everything is working just fine.
now I have a few libraries and I want to use thier functions inside my client.
I want one of my class/interface function to use one of this functions
but I'm not sure how am I supuse to do it, what I did I included the relevant h file and added a reference to the lib in my project
then when I created an instance of the class that is decleared in the lib I got the following likage errors:
MyProject error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in MyLib.lib(MyLib.obj)
and also this kind of error: (for all my functions in MyClass class defined in MyLib lib....)
MyProject error LNK2019: unresolved external symbol "public: __thiscall MyClass::~MyClass(void)" (??1CStockLevels@@QAE@XZ) referenced in function __unwindfunclet$??0MyLib@@QAE@XZ$0
I don't understand what is already defined and what am I suppouse to do to overcome it
Is there another way to add my Lib functionality into this project?
thanks
avi