Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I currently am taking a class in C++ and object oriented programming. my class requires borland C++ compiler but I heard that linux has compilers like GCC. Can I use GNU's GCC instead of Borland C++ compilers and be able to pass the class?I am new to programming and would appriciate any comments
Yes, you can use gcc compiler. After you install the gcc compiler, install mingw. mingw makes binary files that can run on Windows while only using Linux.
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
There may be some differences between the Borland compiler and g++. However, since you are taking a beginning programming class, you should only be doing the basics, and only ANSI C++, so you shouldnt have any problems.
Gcc and Borland are 2 different compilers, so they may use different options. Compiling on Windows may also be different from compiling on Linux (ie different system libraries) or cross-compiling (like using Mingw to compile Windows stuff on a Linux box).
metallica, I know in a lot of those first programming classes, you're programming inside of a GUI-based system, and you're not even writing make files and junk (those come in the second round of classes). If you don't really want to fiddle around with VIM or EMACS or something, writing out C++ in what's basically a fancy Windows Notepad, then writing makefiles and compiling like that, then maybe you should stick with the Borland stuff (if it is in fact the graphical, easy to use stuff)
actually I read the cdrom readme.txt and it is just *.cpp examples. This is my first week in class so I guess of buying a Borland C++ I would prefer to use GCU GCC and take it from there and use mingw to compile stuff for windows. Here is a really stupid question, I just want to get a jump on the class so how would be able to open up a *.cpp file and begin to play with it? I know that I will learn this real soon in the book (online class) but I just wanted to through this out there.
The instructor has told me that I need to use Visual C++ so I guess I am going to have to use a windows machine unless there is an alternative in linux.
One important remark : call the compiler with gpp instead of gcc or u will have plenty of mysterious error messages. If u want a library to program in X, consider Qt4 from Trolltech later on. For now it's too complicated, unless classes are making X programs from the beginning. I have Borland C++ version5 for use in Windows : very good stuff indeed !!!
No need to buy Borland compiler because they give it out for free. Programs compiled with Borland depends on Windows even though it runs in DOS. Visual C++ is a bloated IDE because for a simple "Hello World" program takes up about a megabyte. You do not need Visual C++ for a beginning programming class.
If you use MinGW, the programs will run in DOS or Windows.
A beginning programming C/C++ class will not even touch GUI junk. I have taken a beginning programming C class. All what my instructor/teacher what me to learn is the syntax of the langauge.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.