Eclipse CDT: Incorrect command line argument

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

  • Eclipse CDT: Incorrect command line argument

    Ich hab mir jetzt auch mal [coderwiki]Informationen/Eclipse[/coderwiki] besorgt incl. C++-Plugin.

    Das ganze ist ja auf Englisch - ansich kein Problem aber wenns eine Deutsche Übersetzung gibt wäre das Hilfreich.

    Nebenbei: passt vll eher ins C++ - Forum:
    Das erstellen funktioniert nicht richtig:
    make -k all
    MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
    Incorrect command line argument: -k

    Syntax: MAKE [options ...] target
    -B Builds all targets regardless of dependency dates
    -Dsymbol[=string] Defines symbol [equal to string]
    -Idirectory Names an include directory
    -K Keeps (does not erase) temporary files created by MAKE
    -N Increases MAKE's compatibility with NMAKE
    -Wfilename Writes MAKE to filename updating all non-string options
    -Usymbol Undefine symbol
    -ffilename Uses filename as the MAKEFILE
    -a Performs auto-dependency checks for include files
    -c Caches auto-dependency information
    -e Ignores redefinition of environment variable macros
    -i Ignores errors returned by commands
    -l+ Enables use of long command lines
    -m Displays the date and time stamp of each file
    -n Prints commands but does not do them
    -p Displays all macro definitions and implicit rules
    -q Returns zero if target is up-to-date and nonzero
    if it is not (for use in batch files)
    -r Ignores rules and macros defined in BUILTINS.MAK
    -s Silent, does not print commands before doing them
    -? or -h Prints this message
    Options marked with '+' are on by default. To turn off a default
    option follow it by a '-', for example: -a-


    Eclipse 3.2
    CDT 3.1.1
  • mal versuchen, eine INCLUDE-Variable hat er mir gar nicht angeboten in der entsprechnden Menüführung ;)

    Variable erstellt - kein Fortschritt.
    die d3d9.h befindet sich noch in einem unterverzeichniss bei den Beispielen, ich benenn sie mal um ;)

    ahhh der Index war nicht aktuell, jetzt hat meine suche folgendes ergeben:
    C:\cygwin\usr\include\w32api\d3d9.h

    die d3dx9.h gibt's da nicht -.-

    Müsste wohl da noch entsprechend abändern -.-

    Header hinkopiert geht immer noch nicht, werd ich halt mit der VC6 weiter machen ...

    //UPDATE

    Wegen gtkmm würde ich MinGW vorziehen. Jemand erfahrung?

    Bräuchte vll einen Downloadlink ich steig da nur schwehr duch auf den homepages^^

    Versuch bei MingW das herunterzuladen:
    404

    //UPDATE
    Gefunden soweit
    suche eine möglichkeit CygWin wieder los zu werden

    //UPDATE
    Eclipse + MinGW funktionieren wunderbar :)

    Cygwin kann ich irgendwie nicht empfehlen!
  • Hat irgendwer hier erfahrung mit dem Import von VC .libs in MinGW?
    g++ -L"/lib" -o"shooter.exe" ./2DSprite.o ./BitMapFont.o ./Briefing.o ./CollisionSystem.o ./Console.o ./CreditsManager.o ./Direct3D.o ./DirectInput.o ./Emiter.o ./Enemy.o ./EnemyManager.o ./GameTimer.o ./HUD-Element.o ./HUD-Manager.o ./Kampagne.o ./Main.o ./Menu.o ./MenuListField.o ./Mission.o ./NPC.o ./Particle.o ./Player.o ./PowerUp.o ./Projectile.o ./SaveManager.o ./ShaderManager.o ./Ship.o ./Sound.o ./SoundManager.o ./Star.o ./Starfield.o ./StreamSound.o ./TextureManager.o ./Weapon.o ./ally.o ./playlist.o -ldsound -ldinput -lgdi32 -ldxerr9 -ldinput8 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -ldsound -lwinmm -ldxguid -ld3dx9 -ld3d9
    ./DirectInput.o:DirectInput.cpp:(.text+0x1c5): undefined reference to `c_dfDIKeyboard'
    ./DirectInput.o:DirectInput.cpp:(.text+0x255): undefined reference to `c_dfDIMouse2'
    ./DirectInput.o:DirectInput.cpp:(.text+0x323): undefined reference to `c_dfDIKeyboard'
    ./DirectInput.o:DirectInput.cpp:(.text+0x393): undefined reference to `c_dfDIMouse2'
    ./SoundManager.o:SoundManager.cpp:(.text+0x1c): undefined reference to `DirectSoundCreate8@12'
    collect2: ld returned 1 exit status
    mingw32-make: *** [shooter.exe] Error 1


    Sieht so aus als würde DirectInput + DirectSound fehlen. Wie man allerdings am befehl erkennen kann werden die entsprechenden Biblioteken gelinkt
    There are only 10 types of people in the world: Those who understand binary, and those who don't.

    Download meines ersten Spiels:HIER
    Über Feedback würde ich mich freuen ;)