Advice on which C to hang one's hat.

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

I agree with Dev-Cpp.
It has most of the headers you need, specially for learning, and the IDE is very simple and easy to use.

Personally I couldn't compile a simple console app to less then 300 k. Probably something I did wrong. Have you tried Microsoft c++ 2005 Express? It is currently in beta and free for download.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

GeoTrail wrote:I agree with Dev-Cpp.
It has most of the headers you need, specially for learning, and the IDE is very simple and easy to use.

Personally I couldn't compile a simple console app to less then 300 k. Probably something I did wrong. Have you tried Microsoft c++ 2005 Express? It is currently in beta and free for download.
Just downloaded the newest version and compiled the MdiApp example (gui), and it comes to 35060 bytes.
The hello example (console) comes to 424339 bytes, not bad for 16 lines of code 8O
There must be something wrong.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

fsw, yeah I know.
I read somewhere that you can use the strip command to stip out unnesseccary stuff, but I could never get that working. I've spent hours trying to configure the compiler for the smallest output and never had much luck with it.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Dont use IOStream, if you want a small app. Use stdio as include, and use printf('hello'); for printing .
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Isn't stdio mainly for C and iostream for c++?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

One of the problems with Dev-Cpp is that it uses GCC, which is a unix compiler.

CGYWIN provides the Unix commands needed to compile with GCC, but this requires a separate DLL.
http://www.cygwin.com/


To get over this Dev-Cpp uses Mingw. Mingw does a similar job to CYGWIN and was based on an earlier version. The advantage is that it is statically bound.
http://www.mingw.org/

This causes the extra overhead :( Thats the cost of true cross compatability, I'm afraid.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Yeah that sucks.
Anyways, I got Turbo C++ which compiles to pretty small executables. But that is just a DOS compiler and doesn't always work when running from within Windows. Does anyone know of a different Win compatible compiler I can use with Turbo c++ ?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

Borland released a free version of their c++ compiler (c++ Builder) ( see and download here ) , a commandline compiler which should been compatible with the 'older' TurboC++ one .
SPAMINATOR NR.1
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks for the link Rings :)
Checking it out now.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply