newbie linux user question

This is a discussion on newbie linux user question within the C++ Programming forums, part of the General Programming Boards category; Hello, I usually use dev-cpp on windows, then I simply hit "compiler & execute" and it generates .exe. Now Im ...

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    6

    newbie linux user question

    Hello,
    I usually use dev-cpp on windows, then I simply hit "compiler & execute" and it generates .exe.
    Now Im getting into linux stuff, and Im trying to use anjuta. I wrote a simple hello world program, then I go to build > compile, and it simply generates a .o file.
    How would I link together an executable?

    THanks!

  2. #2
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198
    i've never messed with anjuta, but i've had weird experiences like that. try going into KDE and using KDevelop, that has worked good for me. and this is a linux question, post in the linux forum...
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

  3. #3
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    Quote Originally Posted by agilman
    Hello,
    I usually use dev-cpp on windows, then I simply hit "compiler & execute" and it generates .exe.
    Now Im getting into linux stuff, and Im trying to use anjuta. I wrote a simple hello world program, then I go to build > compile, and it simply generates a .o file.
    How would I link together an executable?

    THanks!
    a.o or a.out?

    a.out is the default output executable name.

    If you pass the compiler the output option you can specify the output file name. no option then it's a.out.

    linux does not use extentions to determine file types, if you specify the output name as hello, then it will be hello, not hello.exe
    Linux looks at the file content to see what type it is. Extentions are for human readability only.

    type ls in the folder you were in when you ran the compiler, any file with an * after the name is an executable file.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question - linux - gcc - c standards
    By AMAMH in forum C Programming
    Replies: 12
    Last Post: 12-03-2009, 01:49 AM
  2. User determined input question
    By lyoncourt in forum C Programming
    Replies: 8
    Last Post: 09-30-2007, 06:10 PM
  3. Simple C question: user input to repeat a loop
    By evernaut in forum C Programming
    Replies: 2
    Last Post: 11-18-2006, 08:23 AM
  4. Newbie question (user error checking)
    By eno in forum C++ Programming
    Replies: 6
    Last Post: 11-27-2002, 08:28 PM
  5. Question about LINUX
    By River21 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-17-2001, 06:39 PM

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