📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Does anyone do C++ programming? A qn about Dev-C++ compiler

Options
I'm a newbie to C++ programmign and have just downloaded the free C++ compiler by Bloodshed - Dev C++.

But when I try to run a simple program on it , it doesn;t seem to work.

Can anyoen please try and explain what I need to do to run programs in the Dev-C++ environment?

The Help in the program is useless and I can't seem to figure out what is going on when I compile - it gives weird messages about file not being most recent etc

Thanks,
L
"To be ignorant of one's ignorance is the malady of the ignorant." Amos Bronson Alcott

Comments

  • newfoundglory
    newfoundglory Posts: 1,912 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    I've never used this, so I can't tell you much about it unfortunately. But I can tell you what I do use.

    For windows, I use cygwin (go to https://www.cygwin.com), so I can use the GNU compiler tools... gcc/g++ etc. You would need to install this when you go through cygwin installation configuration.

    Once installed, start > control panel > system... click advanced tab, then select 'environment variables' from the bottom. You need to add the cygwin bin directory to the windows system path. So edit the path variable and add where you put cygwin ( eg. c:\cygwin\bin; ), ending it with a semi-colon.

    Next install the graphical front end - I use Eclipse SDK. You get this from http://www.eclipse.org/

    Once you have installed this, you need to install the CDT (C Development Tools) which is also found on the eclipse site (its an eclipse tools project). This allows you to compile c/c++ code in eclipse, using the GNU tools you just installed.

    For linux and unix, these tools come as standard so you would just install eclipse!
  • londonman81
    londonman81 Posts: 1,130 Forumite
    Part of the Furniture 500 Posts Name Dropper Combo Breaker
    I've never used this, so I can't tell you much about it unfortunately. But I can tell you what I do use.

    For windows, I use cygwin (go to https://www.cygwin.com), so I can use the GNU compiler tools... gcc/g++ etc. You would need to install this when you go through cygwin installation configuration.

    Once installed, start > control panel > system... click advanced tab, then select 'environment variables' from the bottom. You need to add the cygwin bin directory to the windows system path. So edit the path variable and add where you put cygwin ( eg. c:\cygwin\bin; ), ending it with a semi-colon.

    Next install the graphical front end - I use Eclipse SDK. You get this from http://www.eclipse.org/

    Once you have installed this, you need to install the CDT (C Development Tools) which is also found on the eclipse site (its an eclipse tools project). This allows you to compile c/c++ code in eclipse, using the GNU tools you just installed.

    For linux and unix, these tools come as standard so you would just install eclipse!



    Thanks for that - I dont actually care which C++ enviroment I use as logn as I can use it to write and run C++ programs easily.

    As a complete newbie to it I am not used to anything in particular at the moment so I may have a go at the one you use.

    It's just very annoying downloading a new compiler only to find that it's totally esoteric and un-intuitive to new users.

    Thanks!

    L
    "To be ignorant of one's ignorance is the malady of the ignorant." Amos Bronson Alcott
  • newfoundglory
    newfoundglory Posts: 1,912 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    Eclipse is very popular. It was originally written for Java, and works very well with it. But CDT makes it fantastic for C and C++ too.
  • londonman81
    londonman81 Posts: 1,130 Forumite
    Part of the Furniture 500 Posts Name Dropper Combo Breaker
    Eclipse is very popular. It was originally written for Java, and works very well with it. But CDT makes it fantastic for C and C++ too.
    Wow - you replied just as I was looking at the Eclipse website.

    The Eclipse SDK seems to be a massive file though and I only have dial-up connection 85 MB would take forever to download.

    Anyway - logistics of downloading aside - is the Eclipse developer environment easy to figure out and can I write programs and expect them to run without problems?

    I'm new to programming generally and it doesn't help when a compiler does weird things.

    Thanks

    L
    "To be ignorant of one's ignorance is the malady of the ignorant." Amos Bronson Alcott
  • newfoundglory
    newfoundglory Posts: 1,912 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    Yeah, it is quite big. You dont actually "install" eclipse though, you just unzip all the files, as Eclipse itself is written in Java.

    Yeah, you should have no problems compiling and running programs under windows - i never have!
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.2K Banking & Borrowing
  • 253.2K Reduce Debt & Boost Income
  • 453.7K Spending & Discounts
  • 244.2K Work, Benefits & Business
  • 599.3K Mortgages, Homes & Bills
  • 177K Life & Family
  • 257.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.