这里是错误:
Error 2 error LNK2019: unresolved external symbol "protected: __thiscall CSourceSeeking::CSourceSeeking(char const *,struct IUnknown *,long *,class CCritSec *)" (??
0CSourceSeeking@@IAE@PBDPAUIUnknown@@PAJPAVCCritSec@@@Z) referenced in function "public: __thiscall CPushPin::CPushPin(long *,class CSource *)" (??0CPushPin@@QAE@PAJPAVCSource@@@Z) C:\Users\x\Desktop\PushSource\PushFilter.obj > PushSource
这是我的库:
gdiplus.lib strmbasd.lib msvcrtd.lib winmm.lib odbc32.lib odbccp32.lib
CSourceSeeking 在什么库中?
最佳答案
You have to create Strmbase.lib
/Strmbased.lib
yourself, apparently.确保它是为您的目标构建的(即,如果您的程序是 32 位的,请确保它是作为 32 位库构建的;64 位的也是如此)。
关于c++ - 尽管链接了正确的库,但仍解析未解析的外部符号 CSourceSeeking::CSourceSeeking(...),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13543233/