Thread: a stupid question from a newbie

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    2

    a stupid question from a newbie

    hi ,
    i am a newbie and i just need to know whether my understanding is right or not
    my query is this
    if i compile a c++ program in windows platform it will generate an exe file am i right ?
    if so if i compile the same program from linux platform what output will i get ????

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    You're most likely to have to make adjustment to the file,
    headers,libs,functions etc. but it will compiles under linux as
    ELF (Executable and Linkable Format) if i'm not mistaking.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    If you compile a C++ program on a Windows platform, you usually get an exe-file, that's correct. For Linux I think it depends on the compiler you use. If you use GCC, you will get a file called a.out after compiling, this is your executable.

  4. #4
    Registered User
    Join Date
    Jan 2003
    Posts
    2
    hi ,
    1 more question i m using gcc and i m getting output as a.out now how will i run the program ??????????????

  5. #5
    Or if you are using KDE or Gnome just double click on the file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid newbie question
    By CompiledMonkey in forum C++ Programming
    Replies: 6
    Last Post: 06-06-2004, 12:32 PM
  2. A very stupid newbie question
    By bradleym in forum C Programming
    Replies: 6
    Last Post: 09-14-2002, 04:08 AM
  3. Stupid Question
    By Labelizm in forum Windows Programming
    Replies: 2
    Last Post: 07-24-2002, 04:59 AM
  4. very newbie question: how to copy files
    By webwesen in forum C Programming
    Replies: 26
    Last Post: 04-25-2002, 03:01 PM
  5. Episode II Return Of the newbie : Website IO Question
    By MagiZedd in forum Windows Programming
    Replies: 1
    Last Post: 10-18-2001, 08:58 PM