none
probleme de compilation (directxSDK-PSDKx86) RRS feed

  • Question

  • en fait je tente de compiler un sample du directx sdk sous visual c++ 2005 express et cela ne fonctione pas... j'ai tente a plusieure reprise de configurer les dossier lib et include sans succes...je crois qu'il sagit d'une erreure du linker

    je serais heureux si quelqun pourrait m'envoyer un lien qui pourrait m'expliquer comment configurer le directxSDK et le PlatformSDK avec VsC++2005

    ma console de debogage affiche ceci:
    Code Snippet

    1>------ Build started: Project: ParallaxOcclusionMapping, Configuration: Debug Win32 ------
    1>Linking...
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "struct tagRECT __stdcall DXUTGetWindowClientRect(void)" (?DXUTGetWindowClientRect@@YG?AUtagRECT@@XZ)
    1>DXUTcamera.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8
    1>DXUTsettingsdlg1.obj : error LNK2001: unresolved external symbol __imp__GetClientRect@8
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoW@16 referenced in function "long __stdcall DXUTInit(bool,bool,wchar_t *,bool)" (?DXUTInit@@YGJ_N0PA_W0@Z)
    1>DXUTgui1.obj : error LNK2001: unresolved external symbol __imp__SystemParametersInfoW@16
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "void __cdecl DXUTParseCommandLine(wchar_t *,bool)" (?DXUTParseCommandLine@@YAXPA_W_N@Z)
    1>DXUTenum1.obj : error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4
    1>DXUTmisc1.obj : error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__CommandLineToArgvW@8 referenced in function "void __cdecl DXUTParseCommandLine(wchar_t *,bool)" (?DXUTParseCommandLine@@YAXPA_W_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExW@48 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUTenum1.obj : error LNK2001: unresolved external symbol __imp__AdjustWindowRect@12
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetRect@20 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUTcamera.obj : error LNK2001: unresolved external symbol __imp__SetRect@20
    1>DXUTgui1.obj : error LNK2001: unresolved external symbol __imp__SetRect@20
    1>SDKmisc.obj : error LNK2001: unresolved external symbol __imp__SetRect@20
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__RegisterClassW@4 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetStockObject@4 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__LoadCursorW@8 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__ExtractIconW@12 referenced in function "long __stdcall DXUTCreateWindow(wchar_t const *,struct HINSTANCE__ *,struct HICON__ *,struct HMENU__ *,int,int)" (?DXUTCreateWindow@@YGJPB_WPAUHINSTANCE__@@PAUHICON__@@PAUHMENU__@@HH@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetWindowLongW@8 referenced in function "long __stdcall DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" (?DXUTSetWindow@@YGJPAUHWND__@@00_N@Z)
    1>DXUTenum1.obj : error LNK2001: unresolved external symbol __imp__GetWindowLongW@8
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetWindowTextW@12 referenced in function "long __stdcall DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" (?DXUTSetWindow@@YGJPAUHWND__@@00_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongW@12 referenced in function "long __stdcall DXUTSetWindow(struct HWND__ *,struct HWND__ *,struct HWND__ *,bool)" (?DXUTSetWindow@@YGJPAUHWND__@@00_N@Z)
    1>DXUT1.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)
    1>DXUT1.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)
    1>DXUT1.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)
    1>DXUT1.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)
    1>DXUT1.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)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetMenu@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    1>DXUT1.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)
    1>SDKmisc.obj : error LNK2001: unresolved external symbol __imp__SendMessageW@16
    1>DXUT1.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)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "long __stdcall DXUTStaticWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DXUTStaticWndProc@@YGJPAUHWND__@@IIJ@Z)
    1>DXUT1.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)
    1>DXUTcamera.obj : error LNK2001: unresolved external symbol __imp__GetCursorPos@4
    1>DXUT1.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)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__DestroyAcceleratorTable@4 referenced in function "long __stdcall DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YGJPAUHACCEL__@@@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function "long __stdcall DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YGJPAUHACCEL__@@@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function "long __stdcall DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YGJPAUHACCEL__@@@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function "long __stdcall DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YGJPAUHACCEL__@@@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__PeekMessageW@20 referenced in function "long __stdcall DXUTMainLoop(struct HACCEL__ *)" (?DXUTMainLoop@@YGJPAUHACCEL__@@@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__IsWindowVisible@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__IsZoomed@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__IsIconic@4 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetWindowPlacement@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetWindowPlacement@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetMenu@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "long __cdecl DXUTChangeDevice(struct DXUTDeviceSettings *,struct IDirect3DDevice9 *,struct ID3D10Device *,bool,bool)" (?DXUTChangeDevice@@YAJPAUDXUTDeviceSettings@@PAUIDirect3DDevice9@@PAUID3D10Device@@_N3@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__DeleteDC@4 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetDIBits@28 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__CreateCompatibleDC@4 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetObjectW@12 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetIconInfo@8 referenced in function "long __cdecl DXUTSetD3D9DeviceCursor(struct IDirect3DDevice9 *,struct HICON__ *,bool)" (?DXUTSetD3D9DeviceCursor@@YAJPAUIDirect3DDevice9@@PAUHICON__@@_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__CallNextHookEx@16 referenced in function "long __stdcall DXUTLowLevelKeyboardProc(int,unsigned int,long)" (?DXUTLowLevelKeyboardProc@@YGJHIJ@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__SetWindowsHookExW@16 referenced in function "void __cdecl DXUTAllowShortcutKeys(bool)" (?DXUTAllowShortcutKeys@@YAX_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__UnhookWindowsHookEx@4 referenced in function "void __cdecl DXUTAllowShortcutKeys(bool)" (?DXUTAllowShortcutKeys@@YAX_N@Z)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__MessageBoxW@16 referenced in function "void __cdecl DXUTDisplayErrorMessage(long)" (?DXUTDisplayErrorMessage@@YAXJ@Z)
    1>dxerr.lib(dxerr.obj) : error LNK2001: unresolved external symbol __imp__MessageBoxW@16
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetClassLongW@8 referenced in function "void __cdecl DXUTSetupCursor(void)" (?DXUTSetupCursor@@YAXXZ)
    1>DXUT1.obj : error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "bool __stdcall DXUTIsKeyDown(unsigned char)" (?DXUTIsKeyDown@@YG_NE@Z)
    1>DXUTcamera.obj : error LNK2019: unresolved external symbol __imp__GetForegroundWindow@0 referenced in function "public: __thiscall CD3DArcBall::CD3DArcBall(void)" (??0CD3DArcBall@@QAE@XZ)
    1>dxerr.lib(dxerr.obj) : error LNK2001: unresolved external symbol __imp__GetForegroundWindow@0
    1>DXUTcamera.obj : error LNK2019: unresolved external symbol __imp__ReleaseCapture@0 referenced in function "public: long __thiscall CD3DArcBall::HandleMessages(struct HWND__ *,unsigned int,unsigned int,long)" (?HandleMessages@CD3DArcBall@@QAEJPAUHWND__@@IIJ@Z)
    1>DXUTgui1.obj : error LNK2001: unresolved external symbol __imp__ReleaseCapture@0
    1>DXUTcamera.obj : error LNK2019: unresolved external symbol __imp__SetCapture@4 referenced in function "public: long __thiscall CD3DArcBall::HandleMessages(struct HWND__ *,unsigned int,unsigned int,long)" (?HandleMessages@CD3DArcBall@@QAEJPAUHWND__@@IIJ@Z)
    1>DXUTgui1.obj : error LNK2001: unresolved external symbol __imp__SetCapture@4
    1>DXUTcamera.obj : error LNK2019: unresolved external symbol __imp__PtInRect@12 referenced in function "public: virtual long __thiscall CBaseCamera::HandleMessages(struct HWND__ *,unsigned int,unsigned int,long)" (?HandleMessages@CBaseCamera@@UAEJPAUHWND__@@IIJ@Z)
    1>DXUTgui1.obj : error LNK2001: unresolved external symbol __imp__PtInRect@12
    1>DXUTcamera.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function "protected: void __thiscall CBaseCamera::UpdateMouseDelta(void)" (?UpdateMouseDelta@CBaseCamera@@IAEXXZ)
    1>DXUTenum1.obj : error LNK2019: unresolved external symbol __imp__EnumDisplaySettingsW@12 referenced in function "private: long __thiscall CD3D10Enumeration::EnumerateDisplayModes(class CD3D10EnumOutputInfo *)" (?EnumerateDisplayModes@CD3D10Enumeration@@AAEJPAVCD3D10EnumOutputInfo@@@Z)
    1>DXUTmisc1.obj : error LNK2001: unresolved external symbol __imp__EnumDisplaySettingsW@12
    1>DXUTenum1.obj : error LNK2019: unresolved external symbol __imp__GetMonitorInfoW@8 referenced in function "long __cdecl DXUTFindValidD3D10Resolution(struct CD3D10EnumDeviceSettingsCombo *,struct DXGI_MODE_DESC,struct DXGI_MODE_DESC *)" (?DXUTFindValidD3D10Resolution@@YAJPAUCD3D10EnumDeviceSettingsCombo@@UDXGI_MODE_DESC@@PAU2@@Z)
    1>DXUTgui1.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)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__OffsetRect@12 referenced in function "public: long __thiscall CDXUTDialog::DrawRect9(struct tagRECT *,unsigned long)" (?DrawRect9@CDXUTDialog@@QAEJPAUtagRECT@@K@Z)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__InflateRect@12 referenced in function "public: virtual void __thiscall CDXUTListBox::UpdateRects(void)" (?UpdateRects@CDXUTListBox@@UAEXXZ)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__GetCaretBlinkTime@0 referenced in function "public: __thiscall CDXUTEditBox::CDXUTEditBox(class CDXUTDialog *)" (??0CDXUTEditBox@@QAE@PAVCDXUTDialog@@@Z)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__CloseClipboard@0 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__SetClipboardData@8 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__EmptyClipboard@0 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__OpenClipboard@4 referenced in function "protected: void __thiscall CDXUTEditBox::CopyToClipboard(void)" (?CopyToClipboard@CDXUTEditBox@@IAEXXZ)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__GetClipboardData@4 referenced in function "protected: void __thiscall CDXUTEditBox::PasteFromClipboard(void)" (?PasteFromClipboard@CDXUTEditBox@@IAEXXZ)
    1>DXUTgui1.obj : error LNK2019: unresolved external symbol __imp__IntersectRect@12 referenced in function "public: virtual void __thiscall CDXUTEditBox::Render(float)" (?Render@CDXUTEditBox@@UAEXM@Z)
    1>DXUTgui1.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)
    1>DXUTmisc1.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoA@16 referenced in function "int __stdcall DXUTGetMonitorInfo(struct HMONITOR__ *,struct tagMONITORINFO *)" (?DXUTGetMonitorInfo@@YGHPAUHMONITOR__@@PAUtagMONITORINFO@@@Z)
    1>DXUTmisc1.obj : error LNK2019: unresolved external symbol __imp__ShellExecuteW@24 referenced in function "bool __cdecl DXUTReLaunchMediaCenter(void)" (?DXUTReLaunchMediaCenter@@YA_NXZ)
    1>SDKmisc.obj : error LNK2019: unresolved external symbol __imp__DialogBoxIndirectParamW@20 referenced in function "void __stdcall DXUTDisplaySwitchingToREFWarning(enum DXUTDeviceVersion)" (?DXUTDisplaySwitchingToREFWarning@@YGXW4DXUTDeviceVersion@@@Z)
    1>SDKmisc.obj : error LNK2019: unresolved external symbol __imp__SHGetFolderPathW@20 referenced in function "void __stdcall DXUTDisplaySwitchingToREFWarning(enum DXUTDeviceVersion)" (?DXUTDisplaySwitchingToREFWarning@@YGXW4DXUTDeviceVersion@@@Z)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>SDKmisc.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)
    1>dxerr.lib(dxerr.obj) : error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _DXTraceA@20
    1>Debug\ParallaxOcclusionMapping.exe : fatal error LNK1120: 85 unresolved externals
    1>Build log was saved at "file://c:\Documents and Settings\Félix Montmorency\Mes documents\Visual Studio Projects\ParallaxOcclusionMapping\Debug\BuildLog.htm"
    1>ParallaxOcclusionMapping - 104 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========







    mardi 14 octobre 2008 03:22

Toutes les réponses

  • Aides toi, Dieu t'aideras.

     

    Bon, comme c'est le linker qui hurle, tes includes doivent être OK.

    Le linker n'est pas comptant car les headers déclarent des fonctions qui sont utilisées dans le code mais l'implémentation n'est dans aucune lib.

     

    Première erreur : il ne trouve pas __imp__GetClientRect@8

    Après démangling C++, cela donne "GetClientRect" et une recher sur MSDN:

    http://msdn.microsoft.com/en-us/library/ms633503(VS.85).aspx

     

    Import library User32.lib

     

    Il faut donc ajouter User32.lib dans la liste des lib que le linker doit utiliser.

    mardi 14 octobre 2008 13:17
    Modérateur
  • Ha je vois merci je comprend...Le linker avait uniquement associer le kernel32 par defaut.
    Je suis alle voir sur un autre forum et on m'a expliquer comment inclure les lib necessaire au linker en modifiant le fichier
    corewin_express dans le dossiert VCprojectsdefaults.

    les libraries a inclure etait les suivante:

    "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"

    parcontre je me demande si un jour il est possible que j'ai a en inclure d'autre depandament des projet sur les quels je travaille???

    ce que je ne comprend pas c'est que nul part dans les instruction d'installation j'ai lu que je devait inclure des lib pour le linker
    (meme si c'est tres logique d'avoir a le faire)ce processus est certainment tres confu pour un debutant non ?!?
    mardi 14 octobre 2008 16:03
  • Votre méthode est quelque peu invasive.

    Par votre procédé, je pense que vous avez changé le modèle de projet VC++ lors de sa création.

    Beaucoup de projet VC++ n'ont pas besoin de toutes ces librairies.

    Normalement (je n'ai pas de version Express de VS sous la main), il faut ajouter les librairies au niveau du projet.

    Click droit sur le projet dans l'explorateur de solution -> Properties -> Configuation Properties -> Linker -> Input -> Additional Dependencies.

    Votre problème est au niveau du projet, pas au niveau de l'installation de VS. Chaque projet travaille avec son propre jeu de librairie. Ils faut donc renseigner correctement les librairies utilisées pour chaque projet.

    Le concept de solution de VS permet de travailler sur plusieurs projets et, dans le cadre de la solution VS, indiquer des dépendances entre projets et VS est assez sympa pour automatiquement ajouter les librairies générées par des projets VS (dit projet de bas niveau) à la configuration des projets qui en dépendent (projets de haut niveau).

     

    Avec l'habitude de spécifier les librairies dans la configuration du projet, à chaque fois que vous les utilisées, cela vous paraîtra tout naturel.

     

    Si vous récupérez des sources sur Internet, il faut toujours penser au cadre d'utilisation du code (version du compilateur, Os cibles, etc...)

    mercredi 15 octobre 2008 10:05
    Modérateur