Link to home
Start Free TrialLog in
Avatar of ryanbe
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::CMultiVMR9RenderEngine(struct IUnknown *,long *)" (??0CMultiVMR9RenderEngine@@QAE@PAUIUnknown@@PAJ@Z)
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function "public: virtual __thiscall CMultiVMR9RenderEngine::~CMultiVMR9RenderEngine(void)" (??1CMultiVMR9RenderEngine@@UAE@XZ)
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: virtual long __stdcall CMultiVMR9RenderEngine::Render(void)" (?Render@CMultiVMR9RenderEngine@@UAGJXZ)
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
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AlexFM
AlexFM

You can find this list in Project - Properties - Configuration Properties - Linker - Input - Additional Dependencies.
Avatar of ryanbe

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::CreateDevice_(void)" (?CreateDevice_@CMultiVMR9RenderEngine@@AAEJXZ)
Debug\MultiVMR9.dll : fatal error LNK1120: 1 unresolved externals

Can you help with this please?
Avatar of ryanbe

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.
Add d3d9.lib to linker list.
Description of every function in MSDN containd library name which required for this function.
Avatar of ryanbe

ASKER

Thanks Alex.