I am using visual c++, and I wanted to know how I could make prog.'s for linux.
Thanx for the help in advance.
Printable View
I am using visual c++, and I wanted to know how I could make prog.'s for linux.
Thanx for the help in advance.
You can write it, of course, and just compile the source in Linux. You understand how C++ works, right, and what source is and whatnot?
Humm, visual C++ and Linux ?
I think you mean "C" not Visual C++, the visual program languages are for windowz.
As Jehnx said, you can write and test your program within the Visual C++ environment, but you'll have to compile it in Linux to make sure it works. Also, make sure that you don't use proprietary Win32 applications. There are compiler-specific commands for C++ (especially within the MS Visual world), and if you use any of those, you will get errors within Linux. For compiling in any *nix environment, I have had the best results using g++. It seems to be more compatible with Visual C++ than other compilers I've tested.
AJ
Could you give me a good compiler in linux? I would appreciate it, thank you.
gcc is the norm, and I would recommend it. Most (if not all) distros have it, and if you want, you can try KDevelop IDE which looks something to what you are used to.
KDevelop Home: http://www.kdevelop.org/
gcc Home: http://gcc.gnu.org/
Hope this helps
Here are some sites that i found:
http://linux.tucows.com/system/c.html
http://www.mathtools.net/C++/Compilers/
http://www.thefreecountry.com/develo...ompilers.shtml
http://cplus.about.com/cs/freewareshareware/
http://www.willus.com/ccomp.shtml
http://www.bloodshed.net/compilers/index.html
http://www.compilers.net/Dir/Free/Compilers/CCpp.htm
Hope this helps.
Thank you sooo much I am a newbie but still learning. I hope that I haven't annoyed you too
much.
Thank you all
You are very welcome. Good luck.
You can copy the most of same code (of course without Win functions) but you have to create a new GUI on Linux. With Glide3 or something like that. You must use QT or GTK+ API.
I think so :D .
We never stop learning! I am learning C++ on *NIX and win32, and it's tough :p I am learning arrays,pointers and subroutines. It's great fun, but can be frustrating a times. I wish youthe best of luck man :)Quote:
Thank you sooo much I am a newbie but still learning.