Results 1 to 4 of 4

Thread: c++ ( and geany ) compile problem ( missing g++ )

  1. #1
    Join Date
    Jan 2013
    Beans
    2

    c++ ( and geany ) compile problem ( missing g++ )

    Hello.
    I've got realy huge problem. I left my home for winter break and I installed ubuntu on pen drive. I tried to compile any program in geany or using terminal, but geany says there is no g++ and same in terminal. I borrowed a modem for a time I'll spend here and here comes main problem. I can only use it on windows, because I don't know user or password to connect and windows doesn't require it to connect, but on ubuntu it asks for a user etc. It wouldn't be a problem if I could download .deb package and install it on ubuntu. But I can't, because when I try to install it, it says that I have to install it from a trusted source or something ( I don't remember exactly). So, is there any possible way to install missing programs? Because I wanted to read my c++ book and time runs fast.

    Thanks for help, pieprzmak.

  2. #2
    Join Date
    Mar 2005
    Location
    Isle of Bute, Scotland
    Beans
    369
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: c++ ( and geany ) compile problem ( missing g++ )

    Are you sure you cannot install it.
    As far as I know it says you should only install from trusted sources. It does not say you are not allowed to.
    Running 14.04 on my HP Pavilion g6 4 Gig Ram 320 Gig Disc

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: c++ ( and geany ) compile problem ( missing g++ )

    Quote Originally Posted by pieprzmak View Post
    Hello.
    I've got realy huge problem. I left my home for winter break and I installed ubuntu on pen drive. I tried to compile any program in geany or using terminal, but geany says there is no g++ and same in terminal. I borrowed a modem for a time I'll spend here and here comes main problem. I can only use it on windows, because I don't know user or password to connect and windows doesn't require it to connect, but on ubuntu it asks for a user etc. It wouldn't be a problem if I could download .deb package and install it on ubuntu. But I can't, because when I try to install it, it says that I have to install it from a trusted source or something ( I don't remember exactly). So, is there any possible way to install missing programs? Because I wanted to read my c++ book and time runs fast.

    Thanks for help, pieprzmak.
    So you have 2 issues (at least).

    1. internet connectivity under Ubuntu
    2. how to load a C++ development environment under Ubuntu

    We can't help solve #1 with the data provided. We need to know how you are trying to connect, since most of us have a small network at home and connect to a router which manages the entire internet connection. Any device that can plug into the router is on the internet. Could you be trying to connect to a router using wifi and just not know the SSID and passphrase?



    As to #2, setting up a C++ development environment, that will be difficult without an internet connection. There are many dependencies that Ubuntu will automatically resolve. You'll want more than just the compiler. You need build tools, standard libraries, any additional libraries that your specific book wants, plus lots of knowledge.


    I'd start with these packages:

    • g++
    • libstdc++6
    • build-essential
    • automake
    • make

    You'll need to find those .DEB package files from the repository for your specific version of Ubuntu, plus any dependencies. If your book teaches GUI programming, you'll want those GUI tool as well.


    Another option is to use Windows and a development environment on that platform. There are a number of all-in-one C++ environments based on the GNU tools available for MS-Windows. This isn't really the place to ask for help on that, but here are some options:

    * http://www.codecutter.net/tools/quincy/

    * http://codeblocks.codecutter.org/


    I've never used either. Both are free and meant for students.

  4. #4
    Join Date
    Jan 2013
    Beans
    2

    Re: c++ ( and geany ) compile problem ( missing g++ )

    Ok, thanks guys for help.

    On windows I just connect modem to usb port and it connects automatically ( phone web or sth ) without giving it any authorization. But I won't try to do same on linux. I've known about codeblocks and I will use it. Thanks again

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
  •