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.
10 replies to this topic
#1
Posted 20 November 2011 - 03:19 PM
|
|
|
#2
Posted 20 November 2011 - 03:40 PM
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' .
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
Posted 20 November 2011 - 03:56 PM
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?
Just now i Unzipped "Digital Mars" and i don't even see the executable file or Setup file?
#5
Posted 20 November 2011 - 04:09 PM
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:
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.
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 filenamewhere '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
Posted 20 November 2011 - 04:28 PM
@RhetoricalRuvim and fread:
Thank you guys, just now i have installed "Dev C++" it is working fine....
Thank you guys, just now i have installed "Dev C++" it is working fine....
#7
Posted 20 November 2011 - 11:31 PM
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.
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.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#8
Posted 21 November 2011 - 12:06 AM
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
Posted 21 November 2011 - 02:12 AM
Manual compiling = using text editor (ie Notepad++) & command-line interface compiler
#10
Posted 21 November 2011 - 05:13 AM
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... :)
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
Posted 22 November 2011 - 05:35 AM
RhetoricalRuvim said:
Manual compiling = using text editor (ie Notepad++) & command-line interface compiler
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


Sign In
Create Account


Back to top









