GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Nov-2005, 23:21
gustavson gustavson is offline
New Member
 
Join Date: Nov 2005
Posts: 6
gustavson is on a distinguished road

a good compiler


Hi all,

Could someone suggest me a good C compiler which could be used on Windows, Linux and MacOS? I'm currently using Dev C++, but as far as I know it only works under Windows.

Thanks a lot.
  #2  
Old 05-Nov-2005, 00:12
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,335
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: a good compiler


None. A compiler must be written to work on a specific O/S. As long as you stick to Standard C/C++ code, you should be able to compile the source on any system with any compiler.
__________________

During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence?
  #3  
Old 05-Nov-2005, 00:34
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 929
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: a good compiler


Hi gustavson,

Note that Dev C++ is not a compiler.
It is just an IDE(Integrated Development environment).

Dev C++ uses the MinGW compiler.

You can find various list of compilers in this link:
C/C++ compilers

But as WaltP said, we should stick to standard C/C++ code so that it works in any compiler we use.

Regards,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #4  
Old 05-Nov-2005, 00:49
gustavson gustavson is offline
New Member
 
Join Date: Nov 2005
Posts: 6
gustavson is on a distinguished road

Re: a good compiler


Thanks guys for information. Is just that I was wondering if I might be able to use the same IDE on different operating systems.
  #5  
Old 05-Nov-2005, 13:04
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,335
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: a good compiler


No. Software (which an IDE is) cannot be moved from one system to another. You must find programs built specifically for each system. Sometimes the software designers actually build their software for the various systems, others just for a specific system. You'll have to look around for multi-system programs.
__________________

During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence?
  #6  
Old 07-Nov-2005, 06:17
svenveer svenveer is offline
New Member
 
Join Date: Oct 2005
Posts: 15
svenveer is on a distinguished road

Re: a good compiler


Quote:
Originally Posted by WaltP
No. Software (which an IDE is) cannot be moved from one system to another. You must find programs built specifically for each system. Sometimes the software designers actually build their software for the various systems, others just for a specific system. You'll have to look around for multi-system programs.

Actually yes, you can. The eclipse platform (http://www.eclipse.org) has a C/C++ toolkit. Not for UI design, but it compiles using make. So basically you can use it on any system that has make. It has the basic stuff like code completion etc. Since it's written in Java it can be used on Windows, Mac, Linux and Solaris and several other unix flavours. Just go to http://www.eclipse.org download eclipse, look under tools and get CDT (C Developer Toolkit), download and install.
  #7  
Old 07-Nov-2005, 06:33
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 929
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: a good compiler


Quote:
Originally Posted by svenveer
Actually yes, you can. The eclipse platform (www.eclipse.org) has a C/C++ toolkit. Not for UI design, but it compiles using make. So basically you can use it on any system that has make. It has the basic stuff like code completion etc. Since it's written in Java it can be used on Windows, Mac, Linux and Solaris and several other unix flavours. Just go to www.eclipse.org download eclipse, look under tools and get CDT (C Developer Toolkit), download and install.
No. You can't.
Try installing Eclipse meant for Windows in Linux.
It wont work.
Try installing Eclipse meant for Linux in Windows.
It wont work.
This was what WaltP meant.
Visit this link which shows various OS and their corresponding Eclipse downloads.
http://www.eclipse.org/downloads/index.php

But the look and feel may be the same in all operating systems.
Thank you for your information.

Regards,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #8  
Old 07-Nov-2005, 07:14
svenveer svenveer is offline
New Member
 
Join Date: Oct 2005
Posts: 15
svenveer is on a distinguished road

Re: a good compiler


Quote:
Originally Posted by Paramesh
No. You can't.
Try installing Eclipse meant for Windows in Linux.
It wont work.
Try installing Eclipse meant for Linux in Windows.
It wont work.
This was what WaltP meant.
Visit this link which shows various OS and their corresponding Eclipse downloads.
http://www.eclipse.org/downloads/index.php

But the look and feel may be the same in all operating systems.
Thank you for your information.

Regards,
Paramesh.
Details ..

Actually, this is becuase each OS needs the RCP stack, and not because of the IDE. The RCP stack contains the native widgets.

I really don understand why eclipse does not ship the RCP stack separate.
  #9  
Old 07-Nov-2005, 10:31
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,335
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: a good compiler


Quote:
Originally Posted by svenveer
Details ..
Yeah, details. They are important sometimes. Especially when I gave all the details in my first post.
Quote:
Originally Posted by waltp
Sometimes the software designers actually build their software for the various systems
-- like the eclipse platform


Quote:
Originally Posted by svenveer
Actually, this is becuase each OS needs the RCP stack, and not because of the IDE. The RCP stack contains the native widgets.
Actually, it's because each operating system has a different format for the executable -- and in the case of Mac, a completely different command set: Intel vs. Motorola.

So yes, details are important. Without them you can't arrive at a solution, nor can you understand the problem.
__________________

During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence?
Last edited by WaltP : 07-Nov-2005 at 11:07.
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help required to choose compiler Paramesh C++ Forum 1 24-Sep-2005 11:59
good code? kai85 C++ Forum 6 18-Apr-2005 12:04
Newbie : need help with Dev-C++ compiler batrsau C++ Forum 2 20-Mar-2005 22:05
32 bit compiler needed meet_raman C++ Forum 2 24-Jun-2004 04:42

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:36.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.