C programming

minofifa

Senior member
May 19, 2004
485
0
0
Hi people

I have confused myself about a couple of things, and i'm hoping some people hare can help get tings straight.

I want to do some C programming in windows, and i want to use an IDE like eclipse to do it. I have eclipse and the C/C++ plugin installed but there is some problem. What i think it is, is that i don't have a C compiler. It is surprisingly difficult to find one. I thought installing the gcc toolchain by CodeSourcery would fix my problems but it doesn't seem to.

I have the toolchain which has the ARM processor as the target platorm (doing some ARM programming in school).

Do i need another C compiler that has a windows target platform? I also have visual studio 2005, but it seems to only support C++, not C. I also have cygwin installed but its not making a lot of sense to me (lots of UNIX commands i'm used to, don't do anything).

If this doesn't make sense, please comment and i'll try to be more specifiic. Thank you for any help.
 

Madwand1

Diamond Member
Jan 23, 2006
3,309
0
76
Can't you just use the C++ compiler to program C?

If there's some reason you need a strict C-only compiler, you might be able to get the available C++ compiler to switch modes and accept/generate C-only code.
 

Cooler

Diamond Member
Mar 31, 2005
3,835
0
0
C++ is very compatible with C code with just a few exceptions such as use of void pointers ect. Using the extern C you can even write C code in C++ files.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Use the VS 2005 for what your want.

If you want pure C code, just avoid use of template libraries and classes.

You can still program for Windows using vanilla C and the Win32 APIs.