Dev-Cpp und Fehler bei D3D9



  • hi,
    also ich wollte mal ein beispielprogramm fuer die benutzung von d3d9 komplilieren, aber ich bekomme folgende fehlermeldung:

    Compiler: Default compiler
    Building Makefile: "C:\Documents and Settings\Vedran.VEDRAN-6SSQRN8E\My Documents\cpp_dateien\FDX_Kapitel_1\Makefile.win"
    Executing  make clean
    rm -f Engine.o Exception.o "FDX Engine.o" stdafx.o Project1_private.res Project1.exe
    
    g++.exe -D__DEBUG__ -c Engine.cpp -o Engine.o -I"D:/Dev-Cpp/include/c++"  -I"D:/Dev-Cpp/include/c++/mingw32"  -I"D:/Dev-Cpp/include/c++/backward"  -I"D:/Dev-Cpp/include"  -I"D:/DXSDK/Include"  -I"D:/DXSDK/Include/DShowIDL" -ld3d9   -fexpensive-optimizations -O3 -pg -g3
    
    g++.exe: -ld3d9: linker input file unused because linking not done
    
    g++.exe -D__DEBUG__ -c Exception.cpp -o Exception.o -I"D:/Dev-Cpp/include/c++"  -I"D:/Dev-Cpp/include/c++/mingw32"  -I"D:/Dev-Cpp/include/c++/backward"  -I"D:/Dev-Cpp/include"  -I"D:/DXSDK/Include"  -I"D:/DXSDK/Include/DShowIDL" -ld3d9   -fexpensive-optimizations -O3 -pg -g3
    
    g++.exe: -ld3d9: linker input file unused because linking not done
    
    g++.exe -D__DEBUG__ -c "FDX Engine.cpp" -o "FDX Engine.o" -I"D:/Dev-Cpp/include/c++"  -I"D:/Dev-Cpp/include/c++/mingw32"  -I"D:/Dev-Cpp/include/c++/backward"  -I"D:/Dev-Cpp/include"  -I"D:/DXSDK/Include"  -I"D:/DXSDK/Include/DShowIDL" -ld3d9   -fexpensive-optimizations -O3 -pg -g3
    
    g++.exe: -ld3d9: linker input file unused because linking not done
    
    g++.exe -D__DEBUG__ -c stdafx.cpp -o stdafx.o -I"D:/Dev-Cpp/include/c++"  -I"D:/Dev-Cpp/include/c++/mingw32"  -I"D:/Dev-Cpp/include/c++/backward"  -I"D:/Dev-Cpp/include"  -I"D:/DXSDK/Include"  -I"D:/DXSDK/Include/DShowIDL" -ld3d9   -fexpensive-optimizations -O3 -pg -g3
    
    g++.exe: -ld3d9: linker input file unused because linking not done
    
    windres.exe -i Project1_private.rc -I rc -o Project1_private.res -O coff 
    
    g++.exe -D__DEBUG__ Engine.o Exception.o "FDX Engine.o" stdafx.o Project1_private.res -o "Project1.exe" -L"D:/Dev-Cpp/lib" -L"D:/DXSDK/Lib" -mwindows D:/DXSDK/Lib/d3d9.lib D:/DXSDK/Lib/d3dx9.lib  -lgmon -pg-g3 
    
    Engine.o(.text+0xcd): In function `ZN3FDX6Engine4InitEv':
    C:/Documents and Settings/Vedran.VEDRAN-6SSQRN8E/My Documents/cpp_dateien/FDX_Kapitel_1/Engine.cpp:30: undefined reference to `Direct3DCreate9@4'
    
    g++.exe: unrecognized option `-pg-g3'
    
    make.exe: *** [Project1.exe] Error 1
    
    Execution terminated
    

    was heisst das genau und wie kann ich den fehler beseitigen?

    ich und du muellers kuh


Anmelden zum Antworten