Skip to main content
GameDev.net gamedev.net
🔒 Locked

DXUT library (updated / new issues)

Started by 16bit_port May 6, 2010 at 6:47 PM 1 replies 5.9k views
Original Post
16bit_port
16bit_port
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

#include "DXUT.h"
//#include "DXUTenum.h"
//#include "DXUTmisc.h"

#include "DXUTcamera.h"
#pragma comment( lib, "DXUT.lib" )
#pragma comment( lib, "DXUTOpt.lib" )


but when I compile with

CModelViewerCamera mvc;


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]
Steve_Segreto
Steve_Segreto
Could you try linking against comctl32.lib also? That should give you InitCommonControls(), I am also using DXUT as a lib in my project, but I checked and I didn't have to explicitly link against comctl32.lib. DXTraceW can be had by linking against DXErr.lib (or DXErr9.lib if you have an older SDK)
16bit_port
16bit_port
Thank you very much. I just linked to both of those libraries and it builds and links just fine.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.