ryanbe
asked on
MultiVMR9 compile problems
Hello,
I'm stuck trying to compile the Directshow MultiVMR9 sample in VS 2005.
I get the following linker errors:
Linking...
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function "public: __thiscall CMultiVMR9RenderEngine::CM ultiVMR9Re nderEngine (struct IUnknown *,long *)" (??0CMultiVMR9RenderEngine @@QAE@PAUI Unknown@@P AJ@Z)
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function "public: virtual __thiscall CMultiVMR9RenderEngine::~C MultiVMR9R enderEngin e(void)" (??1CMultiVMR9RenderEngine @@UAE@XZ)
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: virtual long __stdcall CMultiVMR9RenderEngine::Re nder(void) " (?Render@CMultiVMR9RenderE ngine@@UAG JXZ)
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__timeGetTime@0
ETC....
Any ideas on what I'm missing?
Or perhaps could someone supply me with project code that will compile?
I'm really at a loss here! Please help.
I'm stuck trying to compile the Directshow MultiVMR9 sample in VS 2005.
I get the following linker errors:
Linking...
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function "public: __thiscall CMultiVMR9RenderEngine::CM
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function "public: virtual __thiscall CMultiVMR9RenderEngine::~C
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: virtual long __stdcall CMultiVMR9RenderEngine::Re
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__timeGetTime@0
ETC....
Any ideas on what I'm missing?
Or perhaps could someone supply me with project code that will compile?
I'm really at a loss here! Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can find this list in Project - Properties - Configuration Properties - Linker - Input - Additional Dependencies.
ASKER
Thanks Alex that seems to have made some progress. Only one error left now I hope!
How did you know that file was needed?
BTW I should have mentioned it's the dll project of MultiVMR9 that I'm trying to compile.
The error:
Linking...
RenderEngine.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "private: long __thiscall CMultiVMR9RenderEngine::Cr eateDevice _(void)" (?CreateDevice_@CMultiVMR9 RenderEngi ne@@AAEJXZ )
Debug\MultiVMR9.dll : fatal error LNK1120: 1 unresolved externals
Can you help with this please?
How did you know that file was needed?
BTW I should have mentioned it's the dll project of MultiVMR9 that I'm trying to compile.
The error:
Linking...
RenderEngine.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "private: long __thiscall CMultiVMR9RenderEngine::Cr
Debug\MultiVMR9.dll : fatal error LNK1120: 1 unresolved externals
Can you help with this please?
ASKER
Nevermind it builds now!
Alex I owe you some points - but one last question - how did you know this file was missing? I'm new to C++ so could use a pointer please.
Alex I owe you some points - but one last question - how did you know this file was missing? I'm new to C++ so could use a pointer please.
Add d3d9.lib to linker list.
Description of every function in MSDN containd library name which required for this function.
Description of every function in MSDN containd library name which required for this function.
ASKER
Thanks Alex.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_timebeginperiod.asp
In the end of this topic:
Library: Use Winmm.lib
In the end of this topic:
Library: Use Winmm.lib