DevC++ for C code

This is a discussion on DevC++ for C code within the C Programming forums, part of the General Programming Boards category; Hi, I know C compilers are rather dated now, but every time I try to compile C code on MSVC++ ...

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475

    DevC++ for C code

    Hi, I know C compilers are rather dated now, but every time I try to compile C code on MSVC++ compilers I get loads of warnings up saying function names are deceprecated, meaning out of date.

    Is it ok to use DevC++ for C programming instead? I am not sure if there is a way I can change the setting so that it reads C code and not C++ code. Any help on doing this or any good compilers for C would be greatly appriciated

  2. #2
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    >every time I try to compile C code on MSVC++ compilers I get loads of warnings up saying function names are deceprecated, meaning out of date.
    Which functions? I don't get that.

    >Is it ok to use DevC++ for C programming instead?
    It won't kill you.

    >I am not sure if there is a way I can change the setting so that it reads C code and not C++ code.
    Usually compilers tell from the extension. .c is C and .cpp is C++.

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    ok thanks onionknight. One function I get a warning is strcpy,
    I use MSVC++ 2005

  4. #4
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    Haven't used 2005 so I can't tell why you're getting those warnings, but they shouldn't cause any problems. You could look up strcpy in the Help-file and see why it's deprecated.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    > You could look up strcpy in the Help-file and see why it's deprecated.
    It's only deprecated in microsoft's little view of the world.

    But then they're not interested in C, they're pushing everyone into managed C++ and C#
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Registered User
    Join Date
    Dec 2005
    Location
    USA
    Posts
    29
    I recommend Pelles C

    http://www.smorgasbordet.com/pellesc/index.htm

    Just my two sense... but yes... you should be able to use DevC++ ok.

    Eddie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

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