• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Compilers

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Beginners // Misc. Computer Questions

View previous topic :: View next topic  
Author Message
Tactified
Just Arrived
Just Arrived


Joined: 19 Feb 2005
Posts: 0
Location: USA

Offline

PostPosted: Sat Feb 19, 2005 4:40 pm    Post subject: Compilers Reply with quote

Do any of you know where to find a good C++ Compiler, i cant seem to find a free one on the internet anywhere..can someone please help
Back to top
View user's profile Send private message AIM Address
capi
SF Senior Mod
SF Senior Mod


Joined: 21 Sep 2003
Posts: 16777097
Location: Portugal

Offline

PostPosted: Sat Feb 19, 2005 5:03 pm    Post subject: Reply with quote

Hello, Tactified, welcome to SFDC.

For an outstanding C/C++ compiler, which is open source and frankly, technically better than pretty much most commercial ones compilers out there, GCC is all you need.

Now, you didn't specify which operating system you're using, so I'll just be generic. If you're using GNU/Linux or some Unix variant, chances are you already have GCC installed. If not, most distributions have some form of package system (i.e. RPM, Portage, and so on) which will let you download and install it.

If you're using Windows, you can use MinGW, which is basically a set of packages ported to Windows, that enable you to have a fully native *nix-like environment on which to build things. Specifically, you get a shell (command-line), the more common stuff such as cp, mv, ls, binutils and so on, plus GCC, all ported to run natively on Windows.

The above is command-line based, though. This means, you basically edit the source files with whatever editor you want (Notepad, UltraEdit, KWrite or whatnot), then go to the command line and run something along the lines of "gcc myprogram.c -o myprogram" to get the compiled executable.

Should you want a nice front end for Windows, you can install Dev-C++. It's an IDE (Integrated Development Enviroment) for C and C++, meaning you can do things the nice and graphical way (like you would in Borland C++ Builder, or M$ Visual C). Dev-C++ uses GCC to do the compiling, so you still get the benefits of having a great powerhorse of a compiler.
Back to top
View user's profile Send private message
zach8
Just Arrived
Just Arrived


Joined: 27 Dec 2004
Posts: 1


Offline

PostPosted: Sat Feb 19, 2005 5:47 pm    Post subject: Reply with quote

i also use dev C++ its a great program Very Happy
Back to top
View user's profile Send private message Visit poster's website AIM Address
ev0ltn
Just Arrived
Just Arrived


Joined: 12 Dec 2004
Posts: 0
Location: Europe

Offline

PostPosted: Sat Feb 19, 2005 6:05 pm    Post subject: Reply with quote

Miracle C is quite a nice piece of software.
Back to top
View user's profile Send private message Send e-mail
Stormhawk
Trusted SF Member
Trusted SF Member


Joined: 26 Aug 2003
Posts: 31
Location: Warwickshire, England, UK

Offline

PostPosted: Sat Feb 19, 2005 11:59 pm    Post subject: Reply with quote

GCC is a great compiler, but if you're on Win32, and don't mind a command-line compiler, you may want to check out the Borland C++ Compiler, available for free at

http://www.borland.com/products/downloads/download_cbuilder.html

(This is mainly to avoid having to set up GCC or MinGW, though obviously the end result is somewhat similar, and MinGW gives you a UNIX like build environment so you can start on that portable coding!)
Back to top
View user's profile Send private message Visit poster's website
capi
SF Senior Mod
SF Senior Mod


Joined: 21 Sep 2003
Posts: 16777097
Location: Portugal

Offline

PostPosted: Sun Feb 20, 2005 3:43 pm    Post subject: Reply with quote

Indeed Technetium's suggestion is also a good one. Although technically, GCC is by far the better compiler (in terms of optimizations, for example, GCC is much more advanced).

Either GCC or the above mentioned Borland C++ work in the command line (i.e. at the "DOS Prompt", although they are not DOS programs but actually Win32 console programs). GCC has the disadvantage that you need to set up MinGW for it (which isn't too difficult anyway, just unzip a few archives), but it has the advantage of being a more advanced compiler.

Also, you have the above mentioned Dev-C++, which provides you with a nice graphical interface for your programming needs, and uses GCC in the background to do the compiling- pretty much the best of both worlds IMO. The GUI may have a few snags here or there (it's still in development), but it's very much usable (heck, Borland C++ Builder has crashed more often on me than Dev-C++ lol).

By the way, something that might be useful if you opt to go the MinGW+GCC route: a tutorial on how to build GnuPG on Windows, that guides you through installing MinGW along the way. You can just skip over the GnuPG specific stuff if you don't want to build GnuPG (that is, all the steps after you've installed MinGW), but at least for installing MinGW it's a nice help. Here it is: Building GnuPG for Win32 using MinGW.
Back to top
View user's profile Send private message
Predator
Just Arrived
Just Arrived


Joined: 24 Dec 2004
Posts: 0
Location: Texas

Offline

PostPosted: Sun Feb 20, 2005 7:16 pm    Post subject: Reply with quote

If you are using Windows, try Cygwin. Its very useful and handy on a M$ box.
Back to top
View user's profile Send private message Visit poster's website
Tactified
Just Arrived
Just Arrived


Joined: 19 Feb 2005
Posts: 0
Location: USA

Offline

PostPosted: Mon Feb 21, 2005 5:02 pm    Post subject: Reply with quote

(i use a windows operating system) THanx guys been really helpfull.




and guys..that was a lot of responses in a day!! awsome, im already starting to like this site
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Beginners // Misc. Computer Questions All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register