Thread: Need a new compiler

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    3

    Need a new compiler

    I've been using a very old version of Boreland Turboc for many years and it works fine in a DOS application but doesn't do windows applications. It's about time I upgraded to windows .
    Any suggestions on a basic freeware C compiler for windows apps. that's relatively easy to learn and use.

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    MinGW(gcc for windows) or VisualStudio(compiler+IDE+debugger)

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,472
    The code::blocks IDE is often recommended in this forum, i have just started using it after leaving DevCpp and it is nice to work with

  4. #4
    Registered User
    Join Date
    Aug 2009
    Posts
    198
    When I still used Windows I wanted to have GCC, but I couldn't figure out how to install it. So I got Visual Studio, and it kind of worked, but using libraries and multiple source files was such a hassle, you had to remember all these menus and tabs, and I didn't really learn anything. For those reasons, I actually quit C/C++ and started to use Java. When I switched to GNU/Linux, I heard that it is supposed to have GCC in it, so I wrote the "Hello, World!" program in a simple text editor and typed "gcc hello.c", and it just worked! Now I do C, Java, and Perl programming.

    Anyway, in my opinion is that it is easier and more educational to use your favourite plain text editor and a simple command-line compiler.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Consider cygwin (Cygwin Information and Installation), MTK, if you're looking for a gcc in Windows.


    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Registered User
    Join Date
    Aug 2009
    Posts
    198
    I don't have Windows on my computer at all now.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by MTK View Post
    Anyway, in my opinion is that it is easier and more educational to use your favourite plain text editor and a simple command-line compiler.
    And in my opinion, also much much harder. I could never learn all those pesky command-line commands and stuff.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Elysia View Post
    And in my opinion, also much much harder. I could never learn all those pesky command-line commands and stuff.
    No, typing with the mouse can get awkward, it was really not designed for that purpose

    And don't sell yourself short Elysia, I'm sure you could do it if you tried.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  9. #9
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I couldn't. Really.
    My mind is not suited for that kind of stuff. It's more ... graphical in nature. I can easily remember clicks and steps, but no command line stuff.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #10
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by Elysia View Post
    I couldn't. Really.
    My mind is not suited for that kind of stuff. It's more ... graphical in nature. I can easily remember clicks and steps, but no command line stuff.
    I think I know the real reason.

    Nikoloogle Lindbloogle: Favourite bash command line aliases

    tee hee.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I rather prefer dir than ls.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Aug 2009
    Posts
    198
    Quote Originally Posted by Elysia View Post
    And in my opinion, also much much harder. I could never learn all those pesky command-line commands and stuff.
    To operate GCC, this is all you need to know:

    Code:
    gcc <sourcefile1> <sourcefile2> <etc> -o <executablename> -l<library>
    For example to compile the text editor project I am working on now, I type this:

    Code:
    gcc editor.c linked-line.c -o editor -lncurses
    In my opinion this is much easier than navigating through menus full of unnecessary features and having to dig around and remember all those menus, tabs, and shortcuts.
    Also note that the Unix command line is not at all unpleasant, harsh, and restrictive to use as the Windows DOS prompt.
    Last edited by MTK; 09-11-2009 at 07:02 PM.

  13. #13
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I want to use optimizations, dammit! That's not enough.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  14. #14
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Dude, no one really cares what compiler you use. If you don't want to use a CLI, don't. FYI, you can use optimizations. RTFM. Or don't. Really, no one cares.


    Quzah.
    Hope is the first step on the road to disappointment.

  15. #15
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Yes, whatever. The suggestions has been made, and some context to boot.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  4. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM