• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C programming

minofifa

Senior member
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.
 
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.
 
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.
 
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.
 
Back
Top