The first chapter in the first quarter of the source code, can't through,
The experimental configuration:
Windows 7, DX8_SDK
Cfree5.0, set up the Include and Library catalog, the source code is not through,
Vc + + 6.0, set up the Include and Library catalog, the source code is not through,
See online DX9 related reference:
"The second step: the library files needed to add links, such as dxguid. Lib, d3d9. Lib, d3dx9. Lib, etc.,... "
Due to the lack of this step? In view of the DX8 and the source code, how to set?
DX8 + source download
https://pan.baidu.com/s/1vhc1VIn1Tz9FXY7hl0rD8w extracted code: kr89
CFree5.0 error message:
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- configuration: mingw5 - GUI Debug, the compiler type: MinGW -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Check the file dependency...
Are connected...
[Error] E: \ Direct2D \ chap01 \ Example01_1 \ main CPP: 127: undefined reference to ` Direct3DCreate8 @ 4 '
[Error] collect2: ld returned 1 exit status
Build aborted main: two error, zero warning
CodePudding user response:
Completely in accordance with the requirements of the book as far as possible in the VMWare create a virtual machine, meet all the requirements of the development environment used books, such asOperating system: WinXP
Compile environment: VC 6.0
.
CodePudding user response:
Compile,The connection times wrong:
Undefined reference to ` Direct3DCreate8 @ 4 '
Wrong location:
//create the IDirect3D8 object
G_pd3d=Direct3DCreate8 (D3D_SDK_VERSION);
CodePudding user response: