how to run compiled files

This is a discussion on how to run compiled files within the Linux Programming forums, part of the Platform Specific Boards category; This has been kind of bothering me. I use GCC to compile my C++ sources, how do irun the executables, ...

  1. #1
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790

    how to run compiled files

    This has been kind of bothering me. I use GCC to compile my C++ sources, how do irun the executables, i double click and nothing happens.

  2. #2
    Registered User codingmaster's Avatar
    Join Date
    Sep 2002
    Posts
    309
    gpp file.cpp -o filename

    chmod a+x filename // To make the file executable
    ./filename // To execute the file

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Command line:
    user@home->./a.out

    [edit]Doh! beat.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 09:52 PM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 10:46 AM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  5. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 01:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21