Hilfe dickes Link Problem bei D3D in VIsual C++

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Hilfe dickes Link Problem bei D3D in VIsual C++

    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

    1. #ifndef _D3DBASE_H
    2. #define _D3DBASE_H
    3. #define FOR_D3D9
    4. #define WIN32_LEAN_AND_MEAN
    5. #include <windows.h>
    6. #include <time.h>
    7. #pragma comment(linker, "/OPT:NOWIN98")
    8. #include <d3d9.h>
    9. #include "d3dfont9.h"
    10. #define D3Ddllname "ColorPicker2.3.dll"
    11. #define pD3DdeviceX LPDIRECT3DDEVICE9
    12. #define pD3DvertexX LPDIRECT3DVERTEXBUFFER9
    13. #pragma comment (lib, "d3d9.lib")
    14. #pragma message("main.h : Building for D3D9")
    15. #define RESET 16
    16. #define ENDSCENE 42
    Alles anzeigen


    Helft mir bitte ich finde den fehler nicht