getting this error related to linking
-
Hi I have created an ATL application exe type (jjjj) where I am using to create ATL component it gives following error QLView.obj : error LNK2005: _CLSID_MyAWrapper already defined in jjjj.obj SQLView.obj : error LNK2005: _LIBID_Project1Lib already defined in jjjj.obj SQLView.obj : error LNK2005: _IID_IMyAWrapper already defined in jjjj.obj Debug/jjjj.exe : fatal error LNK1169: one or more multiply defined symbols found what to do here.. please suggest .. thanks Lee
Leya
-
Hi I have created an ATL application exe type (jjjj) where I am using to create ATL component it gives following error QLView.obj : error LNK2005: _CLSID_MyAWrapper already defined in jjjj.obj SQLView.obj : error LNK2005: _LIBID_Project1Lib already defined in jjjj.obj SQLView.obj : error LNK2005: _IID_IMyAWrapper already defined in jjjj.obj Debug/jjjj.exe : fatal error LNK1169: one or more multiply defined symbols found what to do here.. please suggest .. thanks Lee
Leya
I think you'll find this is caused because you're #including initguid.h in more than one .cpp file. Make sure that it's only included in *one* cpp file explicitly. If it's in stdafx.h, take it out of there and put it in a .cpp file instead.