1>d3dbase.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>d3dfont9.obj : error LNK2005: "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PBDKK@Z) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: __thiscall CD3DFont::~CD3DFont(void)" (??1CD3DFont@@QAE@XZ) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::InitDeviceObjects(struct IDirect3DDevice9 *)" (?InitDeviceObjects@CD3DFont@@QAEJPAUIDirect3DDevice9@@@Z) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::RestoreDeviceObjects(void)" (?RestoreDeviceObjects@CD3DFont@@QAEJXZ) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::InvalidateDeviceObjects(void)" (?InvalidateDeviceObjects@CD3DFont@@QAEJXZ) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::DeleteDeviceObjects(void)" (?DeleteDeviceObjects@CD3DFont@@QAEJXZ) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::GetTextExtent(char const *,struct tagSIZE *)" (?GetTextExtent@CD3DFont@@QAEJPBDPAUtagSIZE@@@Z) already defined in d3dbase.obj
1>d3dfont9.obj : error LNK2005: "public: long __thiscall CD3DFont::DrawTextA(float,float,unsigned long,char const *,unsigned long)" (?DrawTextA@CD3DFont@@QAEJMMKPBDK@Z) already defined in d3dbase.obj
Link fehler aber alle includes sind richtig gesetzt hier der code wo der error entsteht
C-Quellcode
- #ifndef _D3DBASE_H
- #define _D3DBASE_H
- #define FOR_D3D9
- #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #include <time.h>
- #pragma comment(linker, "/OPT:NOWIN98")
- #include <d3d9.h>
- #include "d3dfont9.h"
- #define D3Ddllname "ColorPicker2.3.dll"
- #define pD3DdeviceX LPDIRECT3DDEVICE9
- #define pD3DvertexX LPDIRECT3DVERTEXBUFFER9
- #pragma comment (lib, "d3d9.lib")
- #pragma message("main.h : Building for D3D9")
- #define RESET 16
- #define ENDSCENE 42
Helft mir bitte ich finde den fehler nicht