doyler
doyler

Reputation: 147

Internal linker error using comsupp.lib

I've searched around here and a few other sites and still the linker error I'm having doesn't seem to be in there or my reading comprehension is failing me today.

The errors VS2010 is giving me are as follows:

Error 10 error LNK2001: unresolved external symbol "void __stdcall _com_issue_error(long)" (?_com_issue_error@@$$FYGXJ@Z)

Error 11 error LNK1120: 1 unresolved externals

I cannot seem to find anywhere what function is missing its external so I know what I should be importing or at the very least including in the linker so debugging it is proving a little hard.

Didn't even think to add this, but when I try and add comsupp to my linker I get the following errors (also my link.exe actually crashes and asks me if I want to send a debug report to Microsoft):

Error 15 error C1001: An internal error has occurred in the compiler.

Error 16 error LNK1000: Internal error during IMAGE::BuildImage

Upvotes: 2

Views: 3397

Answers (2)

zhen ma
zhen ma

Reputation: 661

Do include comdef.h, but don't include comutil.h

Upvotes: 4

Elliot Chen
Elliot Chen

Reputation: 378

Project Property ->Linker -> Input ->Additional Dependencies. Add comsuppd.lib (or comsuppwd.lib) if it's debug mode. Add comsupp.lib (or comsuppw.lib) if it's release mode.

Upvotes: 1

Related Questions