Jump to content

C and C++ Compiler Suggestion?

- - - - -

  • Please log in to reply
10 replies to this topic

#1
gautham

gautham

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
Just now i have installed "CodeBlocks 10.05 and Eclipse IDE for C/C++ Developers" somehow i could not run the program, it looks little bit difficult compared to my existing "Turbo C++ Compiler version 4.5",

Can anyone suggest a simple Compiler, where i can run both C and C++ programs?

Links will be helpful.


Thank you.

#2
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Digital Mars can compile both C and C++. I've been using it for some time now (not that I'm using C/C++ very often, or anything :)).

It compiles programs to run with a command prompt window (console subsystem), but you can run my ChSubSys utility, with the third command line argument as 2, to make the console window disappear.

Also, Digital Mars is console-based, so you'll have to work with either the command prompt or a batch file to compile your programs.

The other thing about Digital Mars is it only has some of the Win32 include libraries; kernel32 and user32 are automatically included, libraries like gdi32 need to be explicitly specified, and some libraries such as opengl32 aren't available (at least not that I know of). But you can probably still load the other libraries with LoadLibrary (), etc.

* * *

I also know of the Pelles C compiler, which I am not as familiar with, but it shows parameter names, etc., for functions, when you type a function call. It sometimes misbehaves, though, like once I couldn't get a project to compile, even though there was nothing wrong with the code. But Pelles C can compile code for different systems, from what I know (eg PC, Pocket PC, WinCE; but probably not Windows Phone, I don't know how to program Windows Phone).

* * *

If you're talking about Linux, you'd probably either use the 'c++' command, or install 'gcc' .

#3
gautham

gautham

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
I have been using "Turbo C++ Compiler version 4.5", On Windows XP it is very easy to install, and easy to operate, and if something goes wrong i can also close it quickly using Task manager to End the process....


Just now i Unzipped "Digital Mars" and i don't even see the executable file or Setup file?

#4
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts
Dev C++ ships with Mingw. Ideal for small projects and executing single files in C and C++ without to much hassle. Dev C++
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:

#5
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Digital Mars comes in a .zip package. You copy all that stuff to a folder, and save it somewhere (eg in the C:\ directory, for easy access).

I have the Digital Mars directory, named dm, in the C:\ directory, so that if I want to compile a C/C++ file, I would usually type something like this for the command line:
\dm\bin\dmc -I\dm\stlport\stlport filename
where 'filename' is the name of the C/C++ file. The file extension is optional, as Digital Mars can still find the file.

You couldn't find any setup file because there is none; it's packaged as is, and has to be extracted that way. I would also recommend downloading the stlport .zip, so that you can include standard libraries (eg iostream, etc.).

* * *

But yes, Dev C++ is another good one.

#6
gautham

gautham

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
@RhetoricalRuvim and fread:

Thank you guys, just now i have installed "Dev C++" it is working fine....

#7
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
MinGW is an attempt at porting GNU Compiler Collections (GCC) to Windows as a native compiler. It is often one of the main compilers used other than that which comes with Microsoft's Visual Studio.

Code::Blocks may use MinGW if on a Windows system, for example.

Be forewarned, Dev-C++ comes pre-packaged with a version of MinGW that is half a decade old. This is not an issue for some people, however if you run in to specific bugs you may have trouble finding them.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#8
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
Code::Blocks is super easy to use, and like said before, Dev-C++ is old. As alternative you can always use a simple notepad and manual compiling.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.

#9
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Manual compiling = using text editor (ie Notepad++) & command-line interface compiler

#10
AKMafia001

AKMafia001

    Programmer

  • Members
  • PipPipPipPip
  • 119 posts
You have got the right choice -- both Code::Blocks and eclipse are outstanding. While installing code::blocks the MinGW compiler is installed with it. While installing it asks for settings for MinGW. Eclipse doesn't do that, you have to download MinGW and set a path for it to make it functional.

Dev-C++ is outdated... Better to stay hungry than using Turbo... :)
I think i'm able to write a code for printing "Hello, World!". Proud of that!

#11
fread

fread

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 787 posts

RhetoricalRuvim said:

Manual compiling = using text editor (ie Notepad++) & command-line interface compiler
Seems to be the simplest choice. It may be worth-while to give Code::Blocks a second attempt.
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein :confused:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users