# solution to unresolved external symbol _com_issue_error _bstr_t::_bstr_t

2006-03-16

LNK2019: unresolved external symbol "void \_\_stdcall \_com\_issue\_error(long)" (?\_com\_issue\_error@@YGXJ@Z) referenced in function "public: \_\_thiscall \_bstr\_t::\_bstr\_t(unsigned short const \*)" (??0\_bstr\_t@@QAE@PBG@Z)

I despise this error. Every time I write a new ATL or WTL app, and don't use COM much in it, I get this.
I then plow for 10 minutes throuh newsgroups to get it figured.
So, hopefully Google will pick this text up and make the solution shorter for other people.

**SOLUTION:** *`#include <comdef.h>`*

*Ben says that If #include comdef.h does not fix the unresolved externals, then make sure you are also linking against comsupp.lib*
