Linker problem with DirectShow



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@@QAE@ABU_GUID@@PADPAUIUnknown@@PAJ@Z) referenced
in function "public: __thiscall Sampler::Sampler(struct IUnknown *,long
*)" (??0Sampler@@QAE@PAUIUnknown@@PAJ@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"

========================================================================================================

.



Relevant Pages

  • Linker problem with DirectShow
    ... The project compiles fine, but when ... other libs; use /NODEFAULTLIB:library ... Creating temporary file ... Creating command line "cl.exe ...
    (microsoft.public.multimedia.directx.dshow.programming)
  • Re: Linker problem with DirectShow
    ... The project compiles fine, but when ... other libs; use /NODEFAULTLIB:library ... Creating temporary file ... Creating command line "cl.exe ...
    (microsoft.public.win32.programmer.directx.video)
  • Stdin.readIn ( ) console window
    ... Hello I got a source code that compiles fine. ... not with textPad but in textPad using the command compile java. ...
    (comp.lang.java.help)
  • Re: Losing preprocessor defintion after generating first temporary file
    ... > Preprocessor> Preprocessor Definitions. ... > compiles a few files, then another temporary file and compiles only ... > compiles as part of the first temporary file then everything works as ... first temporary file inherited their properties from the project. ...
    (microsoft.public.vc.ide_general)
  • Re: 1987 Z80 C compiler 2500ad documentation
    ... compiles and runs with gcc 4, ... information about pref-defined preprocessor symbols. ... Here are the command line options: ... -S Create assembler output with source code as comments ...
    (comp.arch.embedded)