Page 1 of 2 1 2 LastLast
Results 1 to 20 of 22
  1. #1
    Yoshi P
    Join Date
    Aug 2006
    Posts
    5,139
    BG Level
    8
    FFXIV Character
    Dead Gye
    FFXIV Server
    Lamia
    FFXI Server
    Ragnarok

    Anybody know of a good C compiler?

    Yeah so, my first homework assignment for my C/C++ class is due friday and I've yet to find myself a decent compiler, so I'm wondering if anybody here could recommend a decent one. I have visual studio 2008 for C++, but it doesn't do regular C.

    And if anybody recommends that piece of shit that is known as Miracle C I will kill you three times.

  2. #2
    E. Body
    Join Date
    Sep 2007
    Posts
    2,019
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Deadgye View Post
    Yeah so, my first homework assignment for my C/C++ class is due friday and I've yet to find myself a decent compiler, so I'm wondering if anybody here could recommend a decent one. I have visual studio 2008 for C++, but it doesn't do regular C.

    And if anybody recommends that piece of shit that is known as Miracle C I will kill you three times.
    I'm sorry if I'm mistaken, but are you sure VS2008 doesn't do C? C++ is essentially an extension to the C language, I really thought it did. But I've only done C++ in VS2008.

    Do you have access to a linux machine? Nothing simpler than:

    Code:
    gcc test.c -o test
    and then to run

    Code:
    ./test

  3. #3
    Banned.

    Join Date
    Oct 2006
    Posts
    10,115
    BG Level
    9

    there's DJGPP http://www.delorie.com/djgpp/

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

    and codeblocks http://www.codeblocks.org/ which is an IDE but IIRC comes with a compiler too.

    I've used all 3 at some point and they are ok for school stuff.

  4. #4
    Banned.

    Join Date
    Oct 2006
    Posts
    10,115
    BG Level
    9

    There should be a turbo C download somewhere on the need, also intel has a command line compiler, same with borland.

  5. #5
    That SpellCast Guy
    Join Date
    Feb 2006
    Posts
    802
    BG Level
    5

    Install cygwin and use gcc, tutorial: http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html

  6. #6
    Yoshi P
    Join Date
    Aug 2006
    Posts
    5,139
    BG Level
    8
    FFXIV Character
    Dead Gye
    FFXIV Server
    Lamia
    FFXI Server
    Ragnarok

    I'm sorry if I'm mistaken, but are you sure VS2008 doesn't do C? C++ is essentially an extension to the C language, I really thought it did. But I've only done C++ in VS2008.
    It apparently seems it does, but I need to do a tiny work around to get it to do so. That and it gives me warnings that "scanf" and "printf" are scary everytime I run something. lol I'll probably use this and cygwin. I have access to unix, but god that shit is annoying.

  7. #7
    E. Body
    Join Date
    Sep 2007
    Posts
    2,019
    BG Level
    7
    FFXI Server
    Fenrir

    Quote Originally Posted by Deadgye View Post
    I have access to unix, but god that shit is annoying.
    You have so much to learn, padawan.

  8. #8
    Chram
    Join Date
    Aug 2007
    Posts
    2,699
    BG Level
    7
    FFXIV Character
    Nours Sruon
    FFXIV Server
    Moogle
    FFXI Server
    Fenrir

    I used codeblocks personally.

  9. #9
    Yoshi P
    Join Date
    Aug 2006
    Posts
    5,139
    BG Level
    8
    FFXIV Character
    Dead Gye
    FFXIV Server
    Lamia
    FFXI Server
    Ragnarok

    Quote Originally Posted by nitsuj View Post
    You have so much to learn, padawan.
    I like it when the backspace key works and the delete key deletes characters after the pointer. :3 My first uses of unix involved pico, which is a piece of shit, so that probably explains my opinion of unix. I'll probably dual boot between windows and linux within the next few years.

  10. #10
    /lick
    Join Date
    Sep 2005
    Posts
    1,226
    BG Level
    6
    FFXIV Character
    Srs Bsns
    FFXIV Server
    Excalibur
    FFXI Server
    Asura

    Sounds like inferior terminal emoolator settings to me.

    Unix and GCC is the correct (free) answer.

    Intel compiler is pretty hoss for anything running one of their chips... but so retardedly expensive to license it's not even remotely funny.

    I've only used older versions of VS, and I remember C compiling working. C++ is effectively a superset of C, so it should work.

    Scanf and printf are scary, but not really. C++ doesn't like them because they're not as "safe" to use as cin and cout, and are more likely to cause problems if used incorrectly.

  11. #11
    Cerberus
    Join Date
    Jun 2008
    Posts
    464
    BG Level
    4

    gcc for c
    gcc/g++ for c++

    Are you at a high school or college? If you are at a college, chances are they have a few linux servers running that you can ssh into (via Putty - http://www.chiark.greenend.org.uk/~sgtatham/putty/). Talk to your CS department.

  12. #12
    That SpellCast Guy
    Join Date
    Feb 2006
    Posts
    802
    BG Level
    5

    Quote Originally Posted by Deadgye View Post
    I like it when the backspace key works and the delete key deletes characters after the pointer. :3 My first uses of unix involved pico, which is a piece of shit, so that probably explains my opinion of unix. I'll probably dual boot between windows and linux within the next few years.
    This would be either the terminal/ssh program you used (were you connecting to the system remotely?), or your shell (try typing "bash" as your first command).

  13. #13
    United States of Smash!
    Join Date
    Jun 2006
    Posts
    8,810
    BG Level
    8

    I use the bloodshed one for C++ and it seems to work ok for school. I don't know if it works for C though.

  14. #14
    Yoshi P
    Join Date
    Aug 2006
    Posts
    5,139
    BG Level
    8
    FFXIV Character
    Dead Gye
    FFXIV Server
    Lamia
    FFXI Server
    Ragnarok

    This would be either the terminal/ssh program you used (were you connecting to the system remotely?), or your shell (try typing "bash" as your first command).
    Bash fixes it, but when running the actual program it reverts back to backspace failure. And it's unix.. of course I'm connecting to it remotely.

  15. #15
    E. Body
    Join Date
    Jan 2007
    Posts
    2,103
    BG Level
    7

    I use pico for my school stuff, I'm pretty sure I'm the only one who does lol. Everyone else prefers emacs.

  16. #16
    Yoshi P
    Join Date
    Aug 2006
    Posts
    5,139
    BG Level
    8
    FFXIV Character
    Dead Gye
    FFXIV Server
    Lamia
    FFXI Server
    Ragnarok

    NetBeans is sooooooooooo much better than pico imo. Hopefully eclipse is very similar to NetBeans since we'll be using that for my java class soon.

  17. #17
    /lick
    Join Date
    Sep 2005
    Posts
    1,226
    BG Level
    6
    FFXIV Character
    Srs Bsns
    FFXIV Server
    Excalibur
    FFXI Server
    Asura

    Eclipse works well and is pretty full-featured.

    It's a Java "compiler" written in Java, which I like on principle (hallmark of a good language is you can use it to write its own compiler).

    I don't actively do software development these days, and I try to avoid Java like the plague if I do, but Eclipse is my development environment of choice if I'm stuck with it.

    <insert rant about Java being good for teaching OO concepts, but breeding lazy programmers here>

  18. #18
    Nidhogg
    Join Date
    Oct 2005
    Posts
    3,612
    BG Level
    7
    FFXIV Character
    Glick Wick
    FFXIV Server
    Ultros
    FFXI Server
    Bahamut

    Eclipse is a Java IDE, not a compiler

  19. #19
    That SpellCast Guy
    Join Date
    Feb 2006
    Posts
    802
    BG Level
    5

    Quote Originally Posted by Deadgye View Post
    NetBeans is sooooooooooo much better than pico imo.
    Quote Originally Posted by Amastacia View Post
    Eclipse works well and is pretty full-featured. It's a Java "compiler" written in Java
    This thread delivers.

  20. #20
    /lick
    Join Date
    Sep 2005
    Posts
    1,226
    BG Level
    6
    FFXIV Character
    Srs Bsns
    FFXIV Server
    Excalibur
    FFXI Server
    Asura

    Compiler was in quotes for a reason.

    OP said he was doing his "first assignment" and I didn't want to assume he had much experience with CS in general. Compiler is a useful, if technically inaccurate, word to convey the concept, without making assumptions about depth of knowledge. Figured he (and others) would either understand why it was in quotes or make the jump that I was using the term incorrectly to simplify.

    And for an open-source environment, Eclipse *isn't* bad, if that's what you were laughing about.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 2010-07-18, 11:05
  2. Replies: 3
    Last Post: 2009-12-08, 20:43