-
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
-
>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++.
-
ok thanks onionknight. One function I get a warning is strcpy,
I use MSVC++ 2005
-
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.
-
> 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#
-
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