Original Post
So I want to use the CModelViewerCamera class that is defined in DXUT, and I've already built the core and optional libraries located at C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Samples\Cplusplus \DXUT. I have placed the .lib files in my local directory and have included the header and linked to the .lib file but when I compile with I get 2 linker errors: 1>DXUT.lib(DXUT.obj) : error LNK2019: unresolved external symbol __imp__InitCommonControls@0 referenced in function "long __stdcall DXUTInit(bool,bool,wchar_t *,bool)" (?DXUTInit@@YGJ_N0PA_W0@Z) 1>DXUT.lib(DXUTmisc.obj) : error LNK2019: unresolved external symbol _DXTraceW@20 referenced in function "long __stdcall DXUTTrace(char const *,unsigned long,long,wchar_t const *,bool)" (?DXUTTrace@@YGJPBDKJPB_W_N@Z) What exactly am I doing wrong? Is there an easier setup to use CModelViewerCamera? Thanks. [Edited by - 16bit_port on May 6, 2010 7:56:19 PM]
#include "DXUT.h"
//#include "DXUTenum.h"
//#include "DXUTmisc.h"
#include "DXUTcamera.h"
#pragma comment( lib, "DXUT.lib" )
#pragma comment( lib, "DXUTOpt.lib" )
CModelViewerCamera mvc;