Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43

Thread: FAQ: Compiling your first C or C++ programs

  1. #21
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: FAQ: Compiling your first C and C++ programs & Troubleshooting the most common er

    Wybiral's thread: more than a year old:
    http://ubuntuforums.org/showthread.php?t=333867 how to start, in many languages. Looking at it, it's idea was close to "clean" FAQ - so Wybiral started it, year ago!

  2. #22
    Join Date
    Jan 2006
    Beans
    12

    Re: FAQ: Compiling your first C or C++ programs

    This was all I needed!!!

  3. #23
    Join Date
    Feb 2008
    Location
    Hampshire, UK
    Beans
    4
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: FAQ: Compiling your first C or C++ programs

    I've hit a problem with step 0.
    When I sudo apt-get install build-essential
    I get informed that 8 new packages will be installed, then:

    Get: 1 http://gb.archive.ubuntu.com gutsy-updates/main linux-libc-dev 2.6.22-14.52 [653kB]
    Media Change: Please insert the disc labelled
    'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
    in the drive '/cdrom/' and press enter

    Unfortunately I've mislaid my installation CD - and with just seven days until 8.04 comes out, I don't really want to burn a new 7.10 installation CD.

    Can anyone explain:
    (a) Why I'm being asked to insert my installation CD
    (b) How I can get round the fact I've mislaid the CD

    Thanks in advance,
    Gavin

  4. #24
    Join Date
    Apr 2007
    Beans
    14,781

    Re: FAQ: Compiling your first C or C++ programs

    Go to System->Administration->Software Sources and uncheck the CD.

  5. #25
    Join Date
    Sep 2006
    Location
    BC, Canada
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: FAQ: Compiling your first C or C++ programs

    Would it be a worthy idea to cover optimization flags here too or is that beyond the scope of this post? Ie. that -O0 is default for compiling code with g++ and using a higher optimization level or setting other optimization flags can make debugging more difficult?

  6. #26
    Join Date
    Dec 2007
    Beans
    5

    Re: FAQ: Compiling your first C or C++ programs

    Thanks, this was exactly what I was looking for.

  7. #27
    Join Date
    Jun 2008
    Beans
    74

    Re: FAQ: Compiling your first C or C++ programs

    well thanks a lot! this FAQ was a great help!

  8. #28
    Join Date
    Jul 2008
    Beans
    6

    Re: FAQ: Compiling your first C or C++ programs

    Bump - useful post. Thanks.

  9. #29
    Join Date
    Jul 2008
    Location
    Dublin, Ireland
    Beans
    633
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: FAQ: Compiling your first C or C++ programs

    Is there a way to upgrade this post to sticky? or reference it from the sticky post already existing?

  10. #30
    Join Date
    Apr 2007
    Beans
    14,781

    Re: FAQ: Compiling your first C or C++ programs

    Quote Originally Posted by dribeas View Post
    Is there a way to upgrade this post to sticky? or reference it from the sticky post already existing?
    It is referenced in the sticky (see third link in sticky)

Page 3 of 5 FirstFirst 12345 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •