C Compiler and stuff

This is a discussion on C Compiler and stuff within the C Programming forums, part of the General Programming Boards category; The main reason I created this thread, is because I'm wondering on which Dev compiler is the C compiler. I ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    4

    Question C Compiler and stuff

    The main reason I created this thread, is because I'm wondering on which Dev compiler is the C compiler. I see the Dev-C++ Compiler, but I'm unsure if it's the one i'm looking for.

    I have done some minor Python coding, but not much. I found it to be complex, and I was advised to start with C instead. From C to C++, and then from C++ to Pearl (i think). So after I read up on C on wiki, I decided to start with it.

    I like the site, it reminds me of w3schools.com, except it's to C/C++ and not html/javascript/php.

    So can I use the Dev-C++ Compiler for my C coding? I also use the Windows XP OS, so thats' the major reason I'm interested in their compiler, as it's specifically tailored to the Windows OS. I may download Linux or some other OS in the future, but Win is just my defaulted OS. Maybe I'll have a dual OS on my laptop.

    I plan on reading all the (relavent) content on the site, but I like a hands on approach, that's why I want to download a compiler.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Dev-C++ is not a compiler, it is an IDE. It comes with a port of gcc, which has both a C compiler and a C++ compiler. You can compile both sources with it.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    277
    Quote Originally Posted by pal1ndr0me
    So can I use the Dev-C++ Compiler for my C coding?
    Yes you can, personally I don't like it. but be sure to set your sources as C programs, I'm not sure if Dev-C compiles sources according to its extensions someone soon shall come up with the right info. Maybe you can find it here -> http://sourceforge.net/forum/forum.php?forum_id=48211 it is Dev-Cpp board on source forge.

  4. #4
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    >>I'm not sure if Dev-C compiles sources according to its extensions someone soon shall
    >>come up with the right info

    Here I am! Yes, at least for the latest release. Compiles .c as C, and.cpp as C++
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    4
    Integrated development environment? Nice. That's what I thought, but it's a 13.5mb d/l + installation, so I wanted to make sure. Thanks

  6. #6
    ex-DECcie
    Join Date
    Dec 2005
    Posts
    125

    C++ not a pre-req for Perl

    Also, FWIW, you don't need to know C++ to code Perl.

    I picked up Perl before I moved into the C++ world, but I had been a C programmer for quite a long while.

    If you want to learn Perl, pick up the Camel book (Learning Perl). It's an excellent way to get started....
    Mr. Blonde: You ever listen to K-Billy's "Super Sounds of the Seventies" weekend? It's my personal favorite.

  7. #7
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Dev-C++ isn't a very good IDE. I would recommend Visual C++ 2005 Express, it is free and a much better IDE with a larger community.

  8. #8
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    VC++ is great if you like your code that is completely according to standards to be questioned because M$ "better" way to do it.

  9. #9
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Quote Originally Posted by Wraithan
    VC++ is great if you like your code that is completely according to standards to be questioned because M$ "better" way to do it.
    Give an example of standards-compliant code that will not compile in VC++ 2005 Express.

  10. #10
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    I am at work so I can't give the examples... but they will compile, but VC++ 2005 gives warnings against things it feels are unsafe and thinks you should use microsoft functions instead.

  11. #11
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >but VC++ 2005 gives warnings against things it feels are unsafe and thinks
    >you should use microsoft functions instead.
    There's no rule against that. Some compilers give a warning if you don't initialize a variable at declaration, but it's perfectly legal. And the warnings do make a good point about the functions not being safe. If you know what you're doing, it's annoying, but if you aren't intimately familiar with the standard library, it could be a good thing.

    And of course, you can disable that particular warning set if it bothers you so much.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. template to let compiler generate zero
    By KIBO in forum C++ Programming
    Replies: 4
    Last Post: 06-15-2009, 03:51 AM
  2. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  3. Compiler questions
    By DvdHeijden in forum C++ Programming
    Replies: 6
    Last Post: 01-17-2005, 02:00 PM
  4. lcc win32 compiler download problems
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-01-2004, 07:39 PM
  5. Replies: 5
    Last Post: 02-08-2003, 06:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21