PDA

View Full Version : C Compiler....


SanDRocK
July 11th, 2002, 05:25
Ok, this has probably been posted b4, but are there any good C compilers for windows?

ShADoWFLaRe85
July 11th, 2002, 07:57
I use Visual C++

OmniDistortion
July 11th, 2002, 08:26
lmao how true, that is what i use as well....

M.I.K.e7
July 11th, 2002, 08:52
If you are looking for free ones:
http://www.cs.virginia.edu/~lcc-win32/
http://www.bloodshed.net/

Nezzar
July 11th, 2002, 11:36
www.borland.com also offers one

nwagenaar
July 11th, 2002, 12:28
I would stick to GNU C/C++ compilers on WIN32 platforms. Much faster and they are free :) I use GNU C/C++ for my development of various emu's using the SDL library. For me it's portability and Visual C++ code isn't really portable to other platforms like Linux, FreeBSD, etc.

My personal favorite is definately the mingw compiler suite (http://www.mingw.org). Using the MSYS, mingw-1.1 and GCC 3.1 stuff you get a very powerfull compiler suite.

There is also Cygwin (http://www.cygwin.com) but personally I think this compiler is slower and requires a lot of DLL's to be distributed when releasing a WIN32 binary :(

It lacks an IDE but for that I use Dev C++ (http://www.bloodshed.net/), btw the new 5.0 beta versions are excellent! Dev C++ can be downloaded completely with the mingw compiler set (using GCC 3.1) so you can start working instantly :)

I hope this helps!

mikeshoup
July 13th, 2002, 06:54
I personally use Dev-C++ and Minigw32 on Windows. I like it a lot more than MSVC++. Plus, since I use GCC on Linux, it just makes it all the more reason to use minigw.

Skye
July 13th, 2002, 22:34
One of the annoying things though is when you get soruce code from Visual C+ and it does not work on Dev-C++ other than that I use it the most too.

nwagenaar
July 14th, 2002, 00:10
One of the annoying things though is when you get soruce code from Visual C+ and it does not work on Dev-C++ other than that I use it the most too.

Personally, I don't think that would be my problem. If people deliver code in Visual C++ (like I had with BoyCott Advance/SDL, Handy/SDL and Cygne/SDL) and I need to port it to for instance Linux then the code must be in ANSI C/C++. If it isn't, well that's not my problem :)

I hate Visual C++ when it makes use of those dreaded WIN32 API calls. Most of the standard code in Visual C++ will compile nicely on Dev C++/mingw. It's the WIN32 specific stuff (DirectX and GDI) which needs rewriting.

But with all four projects I did, I had no problems (or not much) using the emulation core code. When you port you'll likely have to rewrite your input handling, video and sound output. Thankfully I use SDL which makes it easy to use :)

Regards,

Niels Wagenaar

ammoQ
July 14th, 2002, 08:32
There is no standard (ANSi or whatever) the could replace Direct X.

nwagenaar
July 15th, 2002, 13:00
You could use the Simple Directmedia Layer (SDL) library for that. SDL makes use of DirectX on WIN32 platforms ;)

But if you want your code to be portable and experience 3D acceleration, simply use OpenGL. OpenGL is usuable on many platforms (Mac, Linux, FreeBSD, WIN32, etc).

And if it comes to speed, OpenGL is still faster then DirectX (2D or 3D) unless you have a really buggy videocard :D

Regards,

Niels Wagenaar