   Yet another linker error post
  Hey everyone,I'm trying to write my own little DirectX demo, however there's some issues. I'm running Visual Studio 2008 and Feb. 2010 DX SDK. I did some searching on the forum and google but couldn't find a solution that worked with my problem. Right now I have a demo source code (the CPP and FX) copied over from a DX sample. I know its not going to work until I start modifying the code but right its not even compiling :)Here's the first 10 errors (70+ in total):Error1error LNK2019: unresolved external symbol "int __stdcall DXUTGetExitCode(void)" (?DXUTGetExitCode@@YGHXZ) referenced in function _wWinMain@16demo.objError2error LNK2019: unresolved external symbol "long __stdcall DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YGJPAUHACCEL__@@@Z) referenced in function _wWinMain@16demo.objError3error LNK2019: unresolved external symbol "long __stdcall DXUTCreateDevice(bool,int,int)" (?DXUTCreateDevice@@YGJ_NHH@Z) referenced in function _wWinMain@16demo.objError4error LNK2019: unresolved external symbol "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z) referenced in function _wWinMain@16demo.objError5error LNK2019: unresolved external symbol "void __stdcall DXUTSetCursorSettings(bool,bool)" (?DXUTSetCursorSettings@@YGX_N0@Z) referenced in function _wWinMain@16demo.objError6error LNK2019: unresolved external symbol "long __stdcall DXUTInit(bool,bool,wchar_t *,bool)" (?DXUTInit@@YGJ_N0PA_W0@Z) referenced in function _wWinMain@16demo.objError7error LNK2019: unresolved external symbol "void __stdcall DXUTSetCallbackD3D10DeviceDestroyed(void (__stdcall*)(void *),void *)" (?DXUTSetCallbackD3D10DeviceDestroyed@@YGXP6GXPAX@Z0@Z) referenced in function _wWinMain@16demo.objError8error LNK2019: unresolved external symbol "void __stdcall DXUTSetCallbackD3D10SwapChainReleasing(void (__stdcall*)(void *),void *)" (?DXUTSetCallbackD3D10SwapChainReleasing@@YGXP6GXPAX@Z0@Z) referenced in function _wWinMain@16demo.objError9error LNK2019: unresolved external symbol "void __stdcall DXUTSetCallbackD3D10FrameRender(void (__stdcall*)(struct ID3D10Device *,double,float,void *),void *)" (?DXUTSetCallbackD3D10FrameRender@@YGXP6GXPAUID3D10Device@@NMPAX@Z1@Z) referenced in function _wWinMain@16demo.objError10error LNK2019: unresolved external symbol "void __stdcall DXUTSetCallbackD3D10SwapChainResized(long (__stdcall*)(struct ID3D10Device *,struct IDXGISwapChain *,struct DXGI_SURFACE_DESC const *,void *),void *)" (?DXUTSetCallbackD3D10SwapChainResized@@YGXP6GJPAUID3D10Device@@PAUIDXGISwapChain@@PBUDXGI_SURFACE_DESC@@PAX@Z3@Z) referenced in function _wWinMain@16demo.obj
  Did you added all DXUT files to your solution? Just put a new filter in there, and let drop the whole DXUT folder in there. Then, you may get some other linker errors about Imm.lib or so (Can't rember the right name :( ). Just be sure to link against everything the DX samples do, too.   ;  Thanks, it worked.I copied all the same DXUT files in the DX sample into my solution and it allowed it to be compiled. I thought including (Options > Project and Solutions > VC++ Directories > Include files) the DXUT\Core and DXUT\Optional was enough but I guess not.   ;Quote:Original post by akira1Thanks, it worked.I copied all the same DXUT files in the DX sample into my solution and it allowed it to be compiled. I thought including (Options > Project and Solutions > VC++ Directories > Include files) the DXUT\Core and DXUT\Optional was enough but I guess not.That'll tell Visual Studio where to find the header files, it won't automatically compile the source and link it into your project for you though.   