Thread: Help

  1. #31
    Registered User
    Join Date
    Oct 2009
    Posts
    32
    Ok, how can I set the path back to original?


    I don't want to mess with this computer.


    Also, can someone review the code I posted and see if that meets the requirements/corrections of the assignment, I attached to my first post?

    Thank you for all the help

  2. #32
    Registered User
    Join Date
    Oct 2009
    Posts
    32
    I guess I am in the wrong spot for help?

  3. #33
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    838
    DJGPP Public Access Cross-Compiler

    try this.

    edit: ack nm. c only

  4. #34
    Registered User
    Join Date
    Oct 2009
    Posts
    32
    Awesome, tried it. got error:

    i586-pc-msdosdjgpp-gcc: Internal compiler error: program cpp got fatal signal 11

  5. #35
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Tell you what. Post your latest code, I will compile it for you, and post the output.
    Mainframe assembler programmer by trade. C coder when I can.

  6. #36
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    431
    When you use the set command, it only changes the variable for that sessions, so when you exit cmd.exe, the path will be unchanged.

    To start the program, just type 'g++ [options] files'. You can make sure you've installed the program and set the path properly by typing something like 'g++ --version'.

    So for example if your .cpp file is E:\source\myprogram.cpp, open up cmd, set the path and type
    Code:
    E:
    cd source
    g++ -o myprogram.exe myprogram.cpp
    And it will either give you errors or create myprogram.exe
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  7. #37
    Registered User
    Join Date
    Apr 2008
    Location
    Australia
    Posts
    55
    EDIT: sorry, nvm me.
    Last edited by Tropod; 10-16-2009 at 12:01 PM. Reason: it's 4am & I'm still waking up :P

Popular pages Recent additions subscribe to a feed