Monday, May 24, 2010

Help me in getting a good compiler for c,c++?

hi guys.i am self studying c,c++ these days, i am using turbo c++(v3)!it is good but doesn't have enough header files!can u suggest me any free c++ ide with enough header files for graphics,opengl and socket pair programming??or sites from where i can get all the header files!!

Help me in getting a good compiler for c,c++?
Just to add some information to help the asker. You additional details mentioned,


"well,visual C++ is too heavy for me right now!i want to use only traditional c++ compilers!!isn't it possible to cover all my requirement in a good compiler?or i have to switch to visual c+++"





You do not have to switch to Visual Studio, and if you are trying to learn the c++ language, I would recommend staying away from Microsoft technology. You want a c++ compliant compiler (standards compliant!).





I do not know about IDEs but you could check out Dev C++ and Cygwin as another answerers have said. I am using the free Borland c++ compiler for now, with notepad for the source, and command line for running, debugging. It obviously is slower than an IDE.





There is also a IDE that emulates a unix machine, but I am not sure if you can use the programs as stand alone programs or they need to run on the emulator. It is called minGW, available here;


http://www.mingw.org/


Borland Free C++Compiler


http://www.borland.com/downloads/downloa...





About openGL, I think you need the GLUT (openGL Utility Toolkit). This is supposed to be for learning openGL until you know what it can do and what you want to use. You can get the GLUT for Win32 at


www.pobox.com/~nate/glut.html





Using Glut with Bloodshed Dev C++ info can be found here


http://www.cs.uofs.edu/~mpc3/cmps370/glu...





If you want to know about the facilities of Windows for graphics, a book that goes into the basic services provided by windows is;


Title: Win32 Programming


Authors: Brent E. Rector and Joseph M. Newcomer


ISBN: 0-201-63492-9


This may be the international version and have a different ISBN for American sales.





Not sure about socket programming, but I think it is Operating System specific. You will need the header files for the OS. Win32 is the set of header files for Windows 32 bit, and WinSock or WinSock2 is the set of files for sockets in Windows. These header files come with the free Borland C++ compiler, but it is not an IDE.





With vc++.net 2005, you will be working with the .net framework. Microsoft made all their languages compile to a common language (.net). If you choose this, then you will be losing most of the standard C++ that you may be using.





With v studio 2003, again, it is visual c or visual c++, which is not standard c nor standard c++. IMHO, you lose out here, by not being able to use the standards. Of course, MS has its own standards.





I am not sure if turbo C++ used non standard C++ for some components.





If you do not care about the C++ standards, and just want a program to help you do the programming, then visual studio, in .net would be the way to go.
Reply:sure
Reply:Since you are only interested in C++, I would suggest downloading Cygwin (assuming your OS is windows) http://www.cygwin.com. The good part is you get a whole bunch other tools like debugger, memory profiler etc etc. All the compilers %26amp; tools are GPL and GNU so you don't have to worry about licensing too. Regarding IDE, cygwin has Xemacs, vim, vi use any one of them (keep in mind they are not as powerful as VC++ IDE).
Reply:Uh, for which operating system are you talking about?


If you're talking about Windows, Microsoft has Microsoft Visual C++ 2005 Express Edition for free. Just go to their web site. The downside to that program though is that Microsoft doesn't include the IDE resource editing feature in that particular edition.





NEW--------------------------


I don't understand what you wrote for 'additional details.' Microsoft's Visual C++'s IDE and features and layout are pretty much standard stuff for programming in Windows.


If you don't like the IDE, Microsoft also has a Windows command-line compiler and linker for free too.


Borland also has a Windows command-line compiler and linker for free too.





That Borland Turbo C++ Version 3 you have is an old DOS compiler. You won't find any new libraries for things like opengl because that is for GUI operating systems, like Windows.





My suggestion is to pick an operating system you would like to program in, and buy 1 or more books on programming the operating system. Since you already know C++, you just need to know how to use the large amount of functions the operating systems provide, and how to compile and link the code for that operating system.


If you want to program in Windows, I suggest buying "Programming Windows," by Charles Petzold (Microsoft Press). It is the de facto book on learning to program in Windows.


I learned to program in Windows 3.1 and Windows 95 with his books.


You should also download Visual C++ 2005 Express if you go that route too.
Reply:FREE, Microsoft Visual C++ 2005 Express.


I'm study C++ myself and this is what i use. I just downloaded it works great!


http://msdn.microsoft.com/visualc/
Reply:Dev C++ is also a pretty good compiler. Download from:





http://www.bloodshed.net/devcpp.html


No comments:

Post a Comment