錯誤 LNK2019 Directx10 VC++2010 (Error LNK2019 Directx10 VC++2010)


問題描述

錯誤 LNK2019 Directx10 VC++2010 (Error LNK2019 Directx10 VC++2010)

I am trying to learn about DirectX 2010, after setting up the Libraries how i installed the Libraries:‑ VC++ 2010‑View‑other windows‑Property manager

i opened the Microsoft.Cpp.Win32.user VC++ Directories :‑    Include Directories: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include    Library Directories: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64

here is the  Error list i get:‑ Error   1   error LNK2019: unresolved external symbol _D3DX10CreateEffectFromFileW@48 referenced in function "long __cdecl InitDevice(void)" (?InitDevice@@YAJXZ)   c:\Users\ahmed_saad\documents\visual studio 2010\Projects\CodeName_Yarab\CodeName_Yarab\Main.obj    CodeName_Yarab Error   2   error LNK2019: unresolved external symbol _D3D10CreateDeviceAndSwapChain@32 referenced in function "long __cdecl InitDevice(void)" (?InitDevice@@YAJXZ) c:\Users\ahmed_saad\documents\visual studio 2010\Projects\CodeName_Yarab\CodeName_Yarab\Main.obj    CodeName_Yarab Error   3   error LNK1120: 2 unresolved externals   c:\users\ahmed_saad\documents\visual studio 2010\Projects\CodeName_Yarab\Debug\CodeName_Yarab.exe   1   1   CodeName_Yarab

i am using Windows 8 pro x64

‑‑‑‑‑

參考解法

方法 1:

It might be that you'll need to link to a .lib‑file, because DX ist not among the usual libraries. Look for a .lib file and add it to your Linker properties.

(by Ahmed Saadbash.d)

參考文件

  1. Error LNK2019 Directx10 VC++2010 (CC BY‑SA 3.0/4.0)

#directx-10 #visual-c++






相關問題

D3D10 (DirectX10) 全屏性能問題 (D3D10 (DirectX10) fullscreen performance issue)

directx10 中的精靈和紋理過濾 (Sprites in directx10 and texture filtering)

Firemonkey 中的 DirectX10 支持(非 10.1) (DirectX10 support in Firemonkey (not 10.1))

錯誤 LNK2019 Directx10 VC++2010 (Error LNK2019 Directx10 VC++2010)

管理 HLSL 效果 (Managing HLSL effects)

D3DX10CreateTextureFromFile 返回未知錯誤 (D3DX10CreateTextureFromFile returns unknown error)

使用 HLSL 變量分配 struct C++ (Assign struct C++ with HLSL variable)

ID3DX10Mesh::CloneMesh (ID3DX10Mesh::CloneMesh)

在 DirectX 10 中清除單個視口 (Clear single viewport in DirectX 10)

Visual c++ DirectX 編譯錯誤 (Visual c++ DirectX compilation error)

將 ID3D11Texture2D 轉換為內存緩衝區 (Convert ID3D11Texture2D into a memory buffer)

DirectX 10.1 / C++:如何通過 ID3D10Resource* 紋理在精靈上渲染文本? (DirectX 10.1 / C++: How to render text on sprite over ID3D10Resource* textures?)







留言討論