Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 3rd April 2004, 4:53 PM   #1
gone_bush Thread Starter
Member
 
gone_bush's Avatar
 
Join Date: Nov 2002
Location: Point Cook
Posts: 41
Default WANTED: gcc-like facility for Windoze

Hi all,

Does anyone know of a free (as in beer) C (not C++) compiler for Windoze that does all that gcc does - ie a full Posix-compliant API?

I would prefer a solution that did not need cygwin - the software is not for me but for my students who do not have / know / hate *nix but who cannot afford little Billy's inflated price for VC++.

BTW: Posted in this forum 'coz the Redmond folk probably don't know what 'gcc' is. (Not even sure that they know what beer is )
__________________
"That means calculations, such as working out the factors of prime numbers, which present problems for even the fastest supercomputers, could be trivialized by a quantum computer."
http://www.infoworld.com/article/03/...through_1.html

Last edited by gone_bush; 3rd April 2004 at 4:59 PM.
gone_bush is offline   Reply With Quote

Join OCAU to remove this ad!
Old 3rd April 2004, 7:08 PM   #2
bluedreamer
Member
 
Join Date: Mar 2003
Location: Sydney
Posts: 1,744
Default

No offense but did you bother to google?
First result returned was
http://sis.bris.ac.uk/~dw0857/

mingw-32 also works afaik.
bluedreamer is offline   Reply With Quote
Old 3rd April 2004, 7:29 PM   #3
gone_bush Thread Starter
Member
 
gone_bush's Avatar
 
Join Date: Nov 2002
Location: Point Cook
Posts: 41
Default

No offence taken - I only went to gcc.gnu.org. And yes, I was / am / always will be lazy.

I haven't, as yet, fully explored the site you mentioned but, at first sight, seems to be what I want.

Thx for your reply.
__________________
"That means calculations, such as working out the factors of prime numbers, which present problems for even the fastest supercomputers, could be trivialized by a quantum computer."
http://www.infoworld.com/article/03/...through_1.html
gone_bush is offline   Reply With Quote
Old 4th April 2004, 8:37 AM   #4
hogwash
Member
 
hogwash's Avatar
 
Join Date: Jun 2001
Location: Melbourne, Australia
Posts: 120
Default

Why not download Cygwin and use the windows port of GCC they provide.
hogwash is offline   Reply With Quote
Old 4th April 2004, 11:31 AM   #5
NankstaH
Member
 
NankstaH's Avatar
 
Join Date: Jun 2001
Location: 127.0.0.1
Posts: 726
Default

You might want to give LCC for windows a try. If you're just learning C it's quite capable.
__________________
- YARR
NankstaH is offline   Reply With Quote
Old 4th April 2004, 1:44 PM   #6
DrDevil
Member
 
Join Date: Jun 2001
Location: Brisbane
Posts: 1,141
Default

I'm using djcpp for all my uni C coding - working well so far
__________________
DrDevil
DrDevil is offline   Reply With Quote
Old 4th April 2004, 2:18 PM   #7
Bion1c
Member
 
Bion1c's Avatar
 
Join Date: Jul 2001
Location: Melbourne
Posts: 1,034
Default

another vote for lcc.. i've had no issues recompiling source from that on unix machines w/ gcc
Bion1c is offline   Reply With Quote
Old 4th April 2004, 3:57 PM   #8
xhadow
Member
 
xhadow's Avatar
 
Join Date: Jun 2001
Location: Carnegie, Melbourne
Posts: 87
Default

you may want to see devcpp also, it uses gcc compiler

http://www.bloodshed.net/devcpp.html
__________________
?
xhadow is offline   Reply With Quote
Old 4th April 2004, 4:08 PM   #9
darthpikachu
Member
 
Join Date: May 2002
Location: Sydney
Posts: 506
Default

There is also the windows Unix addon thing, it bascially like cygwin except it's from microsoft
darthpikachu is offline   Reply With Quote
Old 4th April 2004, 4:25 PM   #10
Buzzard
Member
 
Join Date: Apr 2002
Location: Dandenong
Posts: 759
Default

There are quite a few free C(++) compilers for windows:I personally use (well, when not using BCB6) Borland BuilderX which is a very powerful IDE which can use either the Borland Compiler or MinGW (comes with both). A personal edition (free for personal use) is available here: http://www.borland.com/cbuilderx/personal/index.html
__________________
project-2501.net | "Real programmers don't comment their code. It was hard to write, it should be hard to understand." | Soran / Nagrand Holy Paladin
Buzzard is online now   Reply With Quote
Old 4th April 2004, 7:04 PM   #11
gone_bush Thread Starter
Member
 
gone_bush's Avatar
 
Join Date: Nov 2002
Location: Point Cook
Posts: 41
Default More info

Hi Buzzard,

Thx for your suggestions. But (don't you hate that word?) how many of those compilers come with libraries that include 'pipe', 'dup', 'dup2' at such things? Or is that stupid question 'coz all C compilers come with such libraries?

Yeah, I could download the doco / software / other shit and find out for myself, but, as I said above, I'm basically lazy. )
__________________
"That means calculations, such as working out the factors of prime numbers, which present problems for even the fastest supercomputers, could be trivialized by a quantum computer."
http://www.infoworld.com/article/03/...through_1.html
gone_bush is offline   Reply With Quote
Old 4th April 2004, 7:14 PM   #12
Buzzard
Member
 
Join Date: Apr 2002
Location: Dandenong
Posts: 759
Default

I don't know what 'pipe', 'dup' and 'dup2' are but, all the compilers above come with all the standard c libraries and headers (stdio, stdlib, etc..), and a couple also come with the C++ template library (like BCBX).
__________________
project-2501.net | "Real programmers don't comment their code. It was hard to write, it should be hard to understand." | Soran / Nagrand Holy Paladin
Buzzard is online now   Reply With Quote
Old 5th April 2004, 12:35 AM   #13
Rolan
Member
 
Join Date: Jun 2001
Location: Sydney
Posts: 332
Default my 2c

you're after g++ , the windows port of gcc
the Devcpp IDE uses it
__________________
©¿©''
Rolan is offline   Reply With Quote
Old 6th April 2004, 2:20 AM   #14
Shalmanese
Member
 
Shalmanese's Avatar
 
Join Date: Jun 2001
Location: Seattle
Posts: 1,162
Default

pipe, dup and dup2 are all OS specific system calls. Hence, if you want the same functionality in windows then your going to need to run an emulator such as cygwin. Alternatively, you could learn how the windows programming model works and the windows API and do it the windows way. AFAIK, DOS supports pipes natively and I suppose it should support dup and dup2 as well. You would have to check though.
Shalmanese is offline   Reply With Quote
Old 6th April 2004, 5:18 AM   #15
martinus
Imperator Augustus
 
martinus's Avatar
 
Join Date: Jun 2001
Location: Holy Roman Empire
Posts: 2,642
Default

Quote:
Originally posted by Shalmanese
AFAIK, DOS supports pipes natively and I suppose it should support dup and dup2 as well. You would have to check though.
DOS supports pipe dreams only. Apart form that, DOS doesn't multitask and is not even re-entrant. Yes, the shell (command.com) allows vertical line operators, but emulates them by calling commands sequentially with I/O redirection...
martinus is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 1:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!