Discussion:
Linker problem with DirectShow
(too old to reply)
j***@gmail.com
2006-12-12 15:43:12 UTC
Permalink
Hello, I've read through alot of threads on this issue, but haven't
found a solution to my problem..

I've compiled the baseclasses, and linked with strmbasd.lib, and
included streams.h in my project. The project compiles fine, but when
linking, I get this error:

Linking...
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of
other libs; use /NODEFAULTLIB:library
main.obj : error LNK2019: unresolved external symbol "public:
__thiscall CBaseVideoRenderer::CBaseVideoRenderer(struct _GUID const
&,char *,struct IUnknown *,long *)"
(??0CBaseVideoRenderer@@***@ABU_GUID@@PADPAUIUnknown@@***@Z) referenced
in function "public: __thiscall Sampler::Sampler(struct IUnknown *,long
*)" (??0Sampler@@***@PAUIUnknown@@***@Z)
C:\project\cam5\Debug\cam5.exe : fatal error LNK1120: 1 unresolved
externals


I'm at a loss as to what's causing this problem. I'm using visual
studio 2005 (not beta). I copied strmbasd.lib to my VC++ 2005 lib
directory.


Here is my build logfile:

========================================================================================================
Command Lines

Creating temporary file
"c:\project\cam5\cam5\Debug\RSP00001662761576.rsp" with contents
[
/Od /I "C:\program files\microsoft platform SDK for Windows Server 2003
R2\Samples\multimedia\directShow\baseClasses" /I "C:\program
files\microsoft platform SDK for Windows Server 2003 R2\Include" /I
"C:\program Files\microsoft directX SDK (October 2006)\Include" /D
"WIN32" /D "_DEBUG" /D "_WINDOWS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\"
/Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /TP ..\main.cpp
]
Creating command line "cl.exe
@c:\project\cam5\cam5\Debug\RSP00001662761576.rsp /nologo
/errorReport:prompt"
Creating temporary file
"c:\project\cam5\cam5\Debug\RSP00001762761576.rsp" with contents
[
/OUT:"C:\project\cam5\Debug\cam5.exe" /INCREMENTAL
/LIBPATH:"strmbasd.lib" /LIBPATH:"strmiids.lib" /LIBPATH:"winmm.lib"
/LIBPATH:"quartz.lib" /MANIFEST
/MANIFESTFILE:"Debug\cam5.exe.intermediate.manifest" /DEBUG
/PDB:"c:\project\cam5\debug\cam5.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib

".\Debug\main.obj"

".\Debug\cam5.exe.embed.manifest.res"
]
Creating command line "link.exe
@c:\project\cam5\cam5\Debug\RSP00001762761576.rsp /NOLOGO
/ERRORREPORT:PROMPT"

========================================================================================================
The March Hare [MVP]
2006-12-12 16:06:54 UTC
Permalink
Post by j***@gmail.com
Hello, I've read through alot of threads on this issue, but haven't
found a solution to my problem..
How did you miss all the posts in this newsgroups that say "This newsgroup
is no longer active"?

I recommend you read one of them.
--
Microsoft MVPs: http://www.microsoft.com/mvp and
MVPs.org site http://www.mvps.org
My dshow site: http://tmhare.mvps.org
Continue reading on narkive:
Loading...