Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Good c++ application?

  • 04-09-2008 7:32pm
    #1
    Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭


    Hi. Using borland c++ in college, it seems okish.

    Can anyone recommend anything better, or where I can download it?

    I'm sure there's plenty of compilers that are free?


    Cheers


Comments

  • Closed Accounts Posts: 580 ✭✭✭karlr42


    The GNU gcc compiler? Easy to get hold of on Linux or Unix


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    Cheers, running windows though!


  • Closed Accounts Posts: 580 ✭✭✭karlr42


    GrumPy wrote: »
    Cheers, running windows though!
    No problem!
    And you'll get cygwin, really handy


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    karlr42 wrote: »
    No problem!
    And you'll get cygwin, really handy


    Thank you kind sir, I shall give it a whirl!


  • Closed Accounts Posts: 891 ✭✭✭conceited


    Gcc has nothing on intels or microsofts compilers.

    http://www.intel.com/cd/software/products/asmo-na/eng/compilers/284132.htm

    http://msdn.microsoft.com/en-us/visualc/default.aspx
    I still use gcc though !

    But not free :D.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,512 ✭✭✭stevire


    We had Borland in college too, but found Dev-C++ to be much better... (and its free!!) If using it in college you can install it on your shared drive or a usb key.

    Link: http://www.bloodshed.net/devcpp.html


  • Closed Accounts Posts: 225 ✭✭marktsang


    bloodhound devC++ is what i use, im only a beginner but its easy to setup and fast to use from what i can tell.

    it uses the GCC (GNU Compiler Collection) as its compiler

    mark


  • Closed Accounts Posts: 13 Deserved


    Try Microsoft Visual C++ 2008 Enterprise edition, it's completly free and IMHO the best.


  • Closed Accounts Posts: 5 unpure


    Best option by far.


  • Closed Accounts Posts: 46 FDuff


    Deserved wrote: »
    Try Microsoft Visual C++ 2008 Enterprise edition, it's completly free and IMHO the best.

    you surely mean the Express edition, that one is free :) and you can get quite a lot done with it. Check out the M$ website for the differences in versions.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,191 ✭✭✭Feelgood


    Yep Bloodshed or Dev C++ is the sh1t alright....


  • Hosted Moderators Posts: 7,486 ✭✭✭Red Alert


    Bloodshed's the best, but I've had some hassle using it on some 64-bit machines.

    Eclipse will also do C/C++ but I think you may have to install the command line GNU compiler separately, not sure on that one.


  • Closed Accounts Posts: 5 unpure


    Red Alert wrote: »
    Bloodshed's the best, but I've had some hassle using it on some 64-bit machines.

    Eclipse will also do C/C++ but I think you may have to install the command line GNU compiler separately, not sure on that one.


    Really?
    I'm on 64-bit and it compiles and runs fine...
    What version are you running?
    (If you want I can give you mai config. of something...)

    [I have V. 4.9.9.2...]


  • Closed Accounts Posts: 23 se51


    I recommend:

    Code:Blocks
    http://www.codeblocks.org/


  • Registered Users, Registered Users 2 Posts: 477 ✭✭askU


    Feelgood wrote: »
    Yep Bloodshed or Dev C++ is the sh1t alright....

    Bloodshed is best- I agree!!


  • Closed Accounts Posts: 13 Deserved


    Try to run this on Bloodshed:

    void main()
    {
    cout << "Hi";
    }


    Why it's not working?


  • Registered Users, Registered Users 2 Posts: 477 ✭✭askU


    cout is nor=t a valid comand for bloodshed

    try:

    #include <stdio.h>
    int main(void)
    {
    printf("Hi");
    getchar(); getchar();

    return 0;
    }


  • Closed Accounts Posts: 13 Deserved


    It's a valid command:

    #include <iostream>
    using namespace std;
    int main()
    {
    cout << "Hellow world";
    return 0;
    }

    But not for:

    #include <iostream>
    using namespace std;
    void main()
    {
    cout << "Hellow world";
    }


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Deserved wrote: »
    It's a valid command:

    #include <iostream>
    using namespace std;
    int main()
    {
    cout << "Hellow world";
    return 0;
    }

    But not for:

    #include <iostream>
    using namespace std;
    void main()
    {
    cout << "Hellow world";
    }
    Well in C anyways having a void main function is strictly in correct as it should return some return value back out to the console. Thats what I like with Dev Cpp, doesn't allow you to do stuff that shouldn't be allowed.

    Some C compilers allow it. Now I'd put my money that C++ has the same - do not use Void mains!

    FYI: http://www.eskimo.com/~scs/readings/voidmain.960823.html
    askU wrote:
    try:

    #include <stdio.h>
    int main(void)
    {
    printf("Hi");
    getchar(); getchar();

    return 0;
    }

    We're talking C++ here, not C :)


  • Closed Accounts Posts: 2,039 ✭✭✭rmacm


    Webmonkey wrote: »
    Well in C anyways having a void main function is strictly in correct as it should return some return value back out to the console. Thats what I like with Dev Cpp, doesn't allow you to do stuff that shouldn't be allowed.

    We're talking C++ here, not C :)

    Yeah you're right, see here:

    http://www.research.att.com/~bs/bs_faq2.html#void-main


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    Have bloodshed thingy installed. Seems nice in terms of GUI, but it wont run any successfully compiled program. I am running vista btw. I have linux on dual boot, and I cant seem to get any compiler working :o

    (It's not my bad coding if that's what your thinking) :D


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    GrumPy wrote: »
    Have bloodshed thingy installed. Seems nice in terms of GUI, but it wont run any successfully compiled program. I am running vista btw. I have linux on dual boot, and I cant seem to get any compiler working :o

    (It's not my bad coding if that's what your thinking) :D
    What's happening that it won't compile? - Also what is gcc saying in linux? - Strange neither work


  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    pelles C is good too


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    Well I never got any to work in either ubuntu or windows vista!

    But that's not the worst part, my laptop died. So I am using an acer netbook with "Linpus Linux Lite v1.0.7.E"

    Anyone got advice howto get a c/c++ compiler working on this?!


  • Moderators, Technology & Internet Moderators Posts: 11,017 Mod ✭✭✭✭yoyo


    If your in DIT just zip the BCC55 folder up (Type C: in the my computer in lab), send to your email, download when you get home, extract BCC55 folder to C:\ drive, create shortcut to the .bat (startBC.bat) file in the folder on desktrop and you have the same ide as used in college, if you like I'll throw it on rapidshare*

    *Perfectly legal, DIT seem to use the free Borland Compiler and the open source Scntilla? editor, just the BAT file makes it possible to compile within Scntilla

    Nick


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    yoyo wrote: »
    If your in DIT just zip the BCC55 folder up (Type C: in the my computer in lab), send to your email, download when you get home, extract BCC55 folder to C:\ drive, create shortcut to the .bat (startBC.bat) file in the folder on desktrop and you have the same ide as used in college, if you like I'll throw it on rapidshare*

    *Perfectly legal, DIT seem to use the free Borland Compiler and the open source Scntilla? editor, just the BAT file makes it possible to compile within Scntilla

    Nick



    Nice one. Do that if ya can! But will it work on my new "Linpus Linux Lite OS"?


  • Moderators, Technology & Internet Moderators Posts: 11,017 Mod ✭✭✭✭yoyo


    GrumPy wrote: »
    Nice one. Do that if ya can! But will it work on my new "Linpus Linux Lite OS"?
    Not sure but it will work on windows xp/vista :)

    http://rapidshare.com/files/146943678/borlandc__.rar

    ^^ Link to Borland C++ compiler, To install:
    Download winrar (I guess you know this)
    Extract the BCC55 folder to C:\ drive (Directory could be changed, but make sure changes are specified in the startbc.cmd file)
    Create desktop shortcut to StartBC.cmd
    Test it :)

    Nick


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    GrumPy wrote: »
    But that's not the worst part, my laptop died. So I am using an acer netbook with "Linpus Linux Lite v1.0.7.E"

    Anyone got advice howto get a c/c++ compiler working on this?!


    Anyone?


  • Closed Accounts Posts: 580 ✭✭✭karlr42


    If it's linux it should have gcc installed or available. Type gcc into a terminal and see what you get


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    karlr42 wrote: »
    If it's linux it should have gcc installed or available. Type gcc into a terminal and see what you get

    Thanks. But how do I pull up terminal? Sorry, I am new to Linux.


  • Registered Users, Registered Users 2 Posts: 26,584 ✭✭✭✭Creamy Goodness


    totally depends on the distro of linux and i've no experience using your distro.

    most commonly it can be found with a right-click on the desktop i find.


  • Closed Accounts Posts: 580 ✭✭✭karlr42


    ^ +1
    Though apparently it's File->Terminal, in the file browser.


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    Thanks guys, gcc:command not found :rolleyes:

    Getting laptop repaired and buying a netbook anyway, this machine is a temp stand in :pac:

    But would be nice to have some way of doing a bit of c after college, it's my first week!


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭SirLemonhead


    ugh don't use Dev C++

    it hasn't been updated in..years?


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    Sorry for digging up an old thread :D

    Recommendations for a c/c++ compiler for vista? Have visual c++ and bloodshed installed and bloodshed wont seem to run (but compiles fine) and visual studio seems not to like me either.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 15,065 ✭✭✭✭Malice


    I can't say for sure as I don't run Vista but I imagine the most current version of Visual Studio Express should run okay.


  • Registered Users, Registered Users 2 Posts: 6,566 ✭✭✭GrumPy


    malice_ wrote: »
    I can't say for sure as I don't run Vista but I imagine the most current version of Visual Studio Express should run okay.


    Yeah I have it installed. It opens .cpp files I know that work fine. But doesn't seem to be an option to compile and run them? Like, the green "play" button is disabled. :o


  • Registered Users, Registered Users 2 Posts: 981 ✭✭✭fasty


    Make a C++ console application project then add that file to it.


  • Registered Users, Registered Users 2 Posts: 15,065 ✭✭✭✭Malice


    GrumPy wrote: »
    Yeah I have it installed. It opens .cpp files I know that work fine. But doesn't seem to be an option to compile and run them? Like, the green "play" button is disabled. :o
    That's odd! Have you got a project and solution created for it? I don't have 2008 installed on this computer (it's running 2003) but I think it's the same scenario. You can't just create a file and run it, it needs a project.


Advertisement