Help, sample not compiling.

Help
Sharp911
2009-01-23
2013-05-02
  • Sharp911

    Sharp911 - 2009-01-23

    Hey Im trying to compile the car sample, but Im getting a few errors.

    Im using Visual C++ express 2005 edition. Ive downloaded Windows SDK, DirectX SDK. Lined all the includes and libraries.

    But Im getting a lot of errors, and being that Im a little new to C++, Im not sure what these errors mean, but I gather that the source is older and wont compile in the 2005 express edition, am I right in this assumtion?

    Here is the error code.

    ------------------------------------------------------------------------------------------------------
    ------ Build started: Project: Car, Configuration: Debug Win32 ------
    Compiling...
    DXUTsound.cpp
    Linking...
    car.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
    car.obj : error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "public: void __thiscall CCar::Process(struct _XINPUT_STATE &)" (?Process@CCar@@QAEXAAU_XINPUT_STATE@@@Z)
    DXUT.obj : error LNK2001: unresolved external symbol __imp__GetAsyncKeyState@4
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__GetAsyncKeyState@4
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoW@16 referenced in function "long __cdecl DXUTInit(bool,bool,bool,bool)" (?DXUTInit@@YAJ_N000@Z)
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__SystemParametersInfoW@16
    DXUT.obj : error LNK2019: unresolved external symbol __imp__CommandLineToArgvW@8 referenced in function "void __cdecl DXUTParseCommandLine(void)" (?DXUTParseCommandLine@@YAXXZ)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetRect@20 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__SetRect@20
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__SetRect@20
    DXUT.obj : error LNK2019: unresolved external symbol __imp__RegisterClassW@4 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__ExtractIconW@12 referenced in function "long __cdecl DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YAJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetWindowLongW@8 referenced in function "long __cdecl DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" (?DXUTSetWindow@@YAJPAUHWND__@@00_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetWindowTextW@12 referenced in function "long __cdecl DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" (?DXUTSetWindow@@YAJPAUHWND__@@00_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongW@12 referenced in function "long __cdecl DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" (?DXUTSetWindow@@YAJPAUHWND__@@00_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__IsWindowVisible@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__IsZoomed@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8
    DXUTSettingsDlg.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8
    DXUT.obj : error LNK2019: unresolved external symbol __imp__IsIconic@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetWindowPlacement@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetMenu@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetWindowPlacement@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetMenu@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@_N2@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__CallNextHookEx@16 referenced in function "long __stdcall LowLevelKeyboardProc(int,unsigned int,long)" (?LowLevelKeyboardProc@@YGJHIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetWindowsHookExW@16 referenced in function "void __cdecl DXUTAllowShortcutKeys(bool)" (?DXUTAllowShortcutKeys@@YAX_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__UnhookWindowsHookEx@4 referenced in function "void __cdecl DXUTAllowShortcutKeys(bool)" (?DXUTAllowShortcutKeys@@YAX_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DestroyAcceleratorTable@4 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YAJPAUHACCEL__@@@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YAJPAUHACCEL__@@@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YAJPAUHACCEL__@@@Z)
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__TranslateMessage@4
    DXUT.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YAJPAUHACCEL__@@@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__PeekMessageW@20 referenced in function "long __cdecl DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YAJPAUHACCEL__@@@Z)
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__PeekMessageW@20
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcW@16 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__PostQuitMessage@4
    DXUT.obj : error LNK2019: unresolved external symbol __imp__UnregisterClassW@8 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DestroyMenu@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SendMessageW@16 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUTgui.obj : error LNK2001: unresolved external symbol __imp__SendMessageW@16
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__SendMessageW@16
    DXUT.obj : error LNK2019: unresolved external symbol __imp__ClipCursor@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
    DXUT.obj : error LNK2019: unresolved external symbol __imp__ScreenToClient@8 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__MessageBoxW@16 referenced in function "void __cdecl DXUTDisplayErrorMessage(long)" (?DXUTDisplayErrorMessage@@YAXJ@Z)
    dxerr.lib(dxerr.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxW@16
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "void __cdecl DXUTDisplayErrorMessage(long)" (?DXUTDisplayErrorMessage@@YAXJ@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetClassLongW@8 referenced in function "void __cdecl DXUTSetupCursor(void)" (?DXUTSetupCursor@@YAXXZ)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "void __cdecl DXUTSetupCursor(void)" (?DXUTSetupCursor@@YAXXZ)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetDIBits@28 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetObjectW@12 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUT.obj : error LNK2019: unresolved external symbol __imp__GetIconInfo@8 referenced in function "long __cdecl DXUTSetDeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetDeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function "public: bool __thiscall CDXUTDialog::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@CDXUTDialog@@QAE_NPAUHWND__@@IIJ@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function "public: bool __thiscall CDXUTDialog::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@CDXUTDialog@@QAE_NPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__ReleaseCapture@0
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function "public: bool __thiscall CDXUTDialog::MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?MsgProc@CDXUTDialog@@QAE_NPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__SetCapture@4
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__OffsetRect@12 referenced in function "public: long __thiscall CDXUTDialog::DrawRect(struct tagRECT *,unsigned long)" (?DrawRect@CDXUTDialog@@QAEJPAUtagRECT@@K@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__PtInRect@12 referenced in function "public: virtual int __thiscall CDXUTControl::ContainsPoint(struct tagPOINT)" (?ContainsPoint@CDXUTControl@@UAEHUtagPOINT@@@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__PtInRect@12
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__InflateRect@12 referenced in function "public: virtual void __thiscall CDXUTListBox::UpdateRects(void)" (?UpdateRects@CDXUTListBox@@UAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetCaretBlinkTime@0 referenced in function "public: __thiscall CDXUTEditBox::CDXUTEditBox(class CDXUTDialog *)" (??0CDXUTEditBox@@QAE@PAVCDXUTDialog@@@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__CloseClipboard@0 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__SetClipboardData@8 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__EmptyClipboard@0 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__OpenClipboard@4 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetClipboardData@4 referenced in function "protected: void __thiscall CDXUTEditBox::PasteFromClipboard(void)" (?PasteFromClipboard@CDXUTEditBox@@IAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__IntersectRect@12 referenced in function "public: virtual void __thiscall CDXUTEditBox::Render(struct IDirect3DDevice9 *,float)" (?Render@CDXUTEditBox@@UAEXPAUIDirect3DDevice9@@M@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__keybd_event@16 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::SendKey(unsigned char)" (?SendKey@CDXUTIMEEditBox@@KAXE@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetKeyboardLayout@4 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::CheckInputLocale(void)" (?CheckInputLocale@CDXUTIMEEditBox@@KAXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::GetReadingWindowOrientation(unsigned long)" (?GetReadingWindowOrientation@CDXUTIMEEditBox@@KAXK@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::GetReadingWindowOrientation(unsigned long)" (?GetReadingWindowOrientation@CDXUTIMEEditBox@@KAXK@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__RegQueryValueExW@24
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExW@20 referenced in function "protected: static void __cdecl CDXUTIMEEditBox::GetReadingWindowOrientation(unsigned long)" (?GetReadingWindowOrientation@CDXUTIMEEditBox@@KAXK@Z)
    DXUTmisc.obj : error LNK2001: unresolved external symbol __imp__RegOpenKeyExW@20
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function "public: void __thiscall CDXUTIMEEditBox::PumpMessage(void)" (?PumpMessage@CDXUTIMEEditBox@@QAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetMessageW@16 referenced in function "public: void __thiscall CDXUTIMEEditBox::PumpMessage(void)" (?PumpMessage@CDXUTIMEEditBox@@QAEXXZ)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetKeyboardLayoutList@8 referenced in function "public: static bool __cdecl CDXUTIMEEditBox::StaticMsgProc(unsigned int,unsigned int,long)" (?StaticMsgProc@CDXUTIMEEditBox@@SA_NIIJ@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__PostMessageW@16 referenced in function "public: virtual bool __thiscall CDXUTIMEEditBox::MsgProc(unsigned int,unsigned int,long)" (?MsgProc@CDXUTIMEEditBox@@UAE_NIIJ@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__GetFocus@0 referenced in function "public: virtual bool __thiscall CDXUTIMEEditBox::MsgProc(unsigned int,unsigned int,long)" (?MsgProc@CDXUTIMEEditBox@@UAE_NIIJ@Z)
    DXUTgui.obj : error LNK2019: unresolved external symbol __imp__SetRectEmpty@4 referenced in function "public: void __thiscall CDXUTElement::SetTexture(unsigned int,struct tagRECT *,unsigned long)" (?SetTexture@CDXUTElement@@QAEXIPAUtagRECT@@K@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__RegSetValueExW@24 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__DialogBoxIndirectParamW@20 referenced in function "void __cdecl DXUTDisplaySwitchingToREFWarning(void)" (?DXUTDisplaySwitchingToREFWarning@@YAXXZ)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__EndDialog@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__EnableWindow@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__CheckDlgButton@12 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__IsDlgButtonChecked@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SetDlgItemTextW@12 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__GetDlgItem@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__LoadIconW@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SetWindowTextW@8 referenced in function "int __stdcall DisplaySwitchToREFWarningProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DisplaySwitchToREFWarningProc@@YGHPAUHWND__@@IIJ@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__GetForegroundWindow@0 referenced in function "public: __thiscall CD3DArcBall::CD3DArcBall(void)" (??0CD3DArcBall@@QAE@XZ)
    dxerr.lib(dxerr.obj) : error LNK2001: unresolved external symbol __imp__GetForegroundWindow@0
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function "protected: void __thiscall CBaseCamera::GetInput(bool,bool,bool,bool)" (?GetInput@CBaseCamera@@IAEX_N000@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoA@16 referenced in function "int __cdecl DXUTGetMonitorInfo(struct HMONITOR__ *,struct tagMONITORINFO *)" (?DXUTGetMonitorInfo@@YAHPAUHMONITOR__@@PAUtagMONITORINFO@@@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__EnumDisplaySettingsW@12 referenced in function "void __cdecl DXUTGetDesktopResolution(unsigned int,unsigned int *,unsigned int *)" (?DXUTGetDesktopResolution@@YAXIPAI0@Z)
    DXUTmisc.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteW@24 referenced in function "bool __cdecl DXUTReLaunchMediaCenter(void)" (?DXUTReLaunchMediaCenter@@YA_NXZ)
    DXUTsound.obj : error LNK2019: unresolved external symbol _DirectSoundCreate8@12 referenced in function "public: long __thiscall CSoundManager::Initialize(struct HWND__ *,unsigned long)" (?Initialize@CSoundManager@@QAEJPAUHWND__@@K@Z)
    dxerr.lib(dxerr.obj) : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _DXTraceA@20
    Car_d.exe : fatal error LNK1120: 95 unresolved externals
    Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\tokamak_1.0.5a\tokamak_release\d3dapp\Debug\BuildLog.htm"
    Car - 118 error(s), 1 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     
    • ravuya

      ravuya - 2009-01-23

      Hi,

      This sounds to me like you are not properly linking the Windows libraries, whichever they may be, into the program. Are you sure you've set the Platform SDK library paths properly in the VS "directories" options window?

      Additionally, it also appears that you are not properly linking to DirectSound, either, but that is only the link error at the end (unless I've missed others).

      Please let me know if that fixed your problem. Good luck!

       
    • Sharp911

      Sharp911 - 2009-01-23

      Thanks, that corrected a lot of the error list, but Im still getting a few errors.

      Here is the list of the libraries that Im linking to:

      C:\Program Files\Microsoft Platform SDK\Lib
      C:\Program Files\Microsoft Platform SDK\Lib\Win95
      C:\Program Files\Microsoft Platform SDK\Lib\IA64
      C:\Program Files\Microsoft Platform SDK\Lib\IA64\mfc
      C:\Program Files\Microsoft Platform SDK\Lib\AMD64
      C:\Program Files\Microsoft Platform SDK\Lib\AMD64\atlmfc
      C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\x64
      C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
      C:\Documents and Settings\Administrator\Desktop\tokamak_1.0.5a\tokamak_release\lib
      C:\Program Files\Microsoft DirectX SDK (November 2008)\Lib\x86

      And here is the new compiling log

      ---------------------------------------------------------------------------------------------------------------

      ------ Build started: Project: Car, Configuration: Debug Win32 ------
      Compiling...
      DXUT.cpp
      DXUTenum.cpp
      DXUTgui.cpp
      DXUTMesh.cpp
      DXUTmisc.cpp
      DXUTRes.cpp
      DXUTSettingsDlg.cpp
      DXUTsound.cpp
      car.cpp
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(385) : warning C4311: 'type cast' : pointer truncation from 'CCar *const ' to 'u32'
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(411) : warning C4311: 'type cast' : pointer truncation from 'CRenderPrimitive *' to 'u32'
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(391) : warning C4189: 'i' : local variable is initialized but not referenced
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(519) : warning C4311: 'type cast' : pointer truncation from 'CRenderPrimitive *' to 'u32'
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(625) : warning C4312: 'type cast' : conversion from 'u32' to 'CRenderPrimitive *' of greater size
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(640) : warning C4312: 'type cast' : conversion from 'u32' to 'CRenderPrimitive *' of greater size
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(729) : warning C4312: 'type cast' : conversion from 'u32' to 'CCar *' of greater size
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(782) : warning C4189: 'dot' : local variable is initialized but not referenced
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(898) : warning C4101: 'vel' : unreferenced local variable
      d3dapp.cpp
      tokamaksampleApp.cpp
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\tokamaksampleapp.cpp(91) : warning C4101: 'wsz' : unreferenced local variable
      dxstdafx.cpp
      Generating Code...
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(395) : warning C4706: assignment within conditional expression
      c:\documents and settings\administrator\desktop\tokamak_1.0.5a\tokamak_release\d3dapp\car.cpp(750) : warning C4706: assignment within conditional expression
      Linking...
      DXUT.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
      LIBCMTD.lib(typinfo.obj) : fatal error LNK1112: module machine type 'IA64' conflicts with target machine type 'X86'
      Build log was saved at "file://c:\Documents and Settings\Administrator\Desktop\tokamak_1.0.5a\tokamak_release\d3dapp\Debug\BuildLog.htm"
      Car - 1 error(s), 13 warning(s)
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

       
      • ravuya

        ravuya - 2009-01-23

        Somehow it appears you are trying to compile an Intel Itanium (IA64) build when you have an x86/Pentium-based computer.

        Are you sure you downloaded the right Platform SDK and not the one for IA64? IA64 is not the same as x64.

         
    • Sharp911

      Sharp911 - 2009-01-23

      LOL.... very well could be... Not sure how I could have downloaded that, but I was trying to work on a project, get the samples to compile and playing a game at the same time. I will uninstall the platform and find the correct one.

      Thanks for your help so far, Ill let you know how it goes :)

       
    • Sharp911

      Sharp911 - 2009-01-29

      I tried to download the x86 platform, but the download installs what I have showed you. and that is from the microsoft website.

      I dont know and have given up trying to make this work. Ive tried and cant get it.

      If you know of a solution where I can get the correct platform SDK then I might try again.

       
      • ravuya

        ravuya - 2009-01-29

        So in your library (and header, and executable) directories, there are no IA64 or AMD64 directories listed anymore? The IA64 PSDK is completely removed?

        If that's the case, I'm not sure what's going on. Can you build other applications, or is it just Tokamak linking that's giving you problems?

         
      • manthrax

        manthrax - 2009-01-29

        Looking at your link errors from the 23rd, It appears to not be linking in the DXUtil librarie(s).
        You may have the platformSDK sorted but now need the right DX sdk stuff?
        please repost your current link errors?

         
      • manthrax

        manthrax - 2009-01-31

        Hmm on second peek, I think Ravuya is correct in that you are linking to the wrong libraries.

        Are you running on a 64 bit OS?

        I *think* this is the SDK you're looking for, but I'm not positive, since it's been revised a few times since I got my version:

        http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en

        Let us know if this helps!

         
    • manthrax

      manthrax - 2009-01-31

      Also, upon even further inspection of your errors, I realize the Car.cpp sample you are building will most likely *NOT* work when compiled for 64 bit, due to some pointer/integer casting/fiddling.
      I'm guessing that extends to tokamak in general.

      Do you actually require 64 bit for your application?

       

Log in to post a comment.