Linux questions

hello everyone.

i am considering to instal Linux (Ubuntu)at my laptop.
Before i install it, i have some questions.

is Microsoft Visual studio 2010 usable in Linux?
how different is programming for Linux (can I use all the functions of Win32)?
how can i compile my programs to .bin instead of .exe?
You cannot use Visual Studio, and you cannot use Win32, because Linux is not Windows.

Programming on Linux doesn't need to be very different from Windows, as there are several IDEs available. Among them are Code:Blocks, KDevelop, and Eclipse. Do a google search and try a few. Most IDEs can be installed through the package manager.

However, I encourage you to try working without an IDE. It isn't necessary on Linux, and can often get in the way. You'll need the package build-essential, and a good text editor, such as gedit or kate. After creating your source files, use g++ to compile them by typing the following in a terminal (be sure you are in the same directory as your source files):

g++ -o myprogram myprogram.cpp

This will create an executable called myprogram in the current directory (in Linux, executables don't have extensions). To run your program, type:

./myprogram
Last edited on
closed account (3hM2Nwbp)
Make sure you can switch back to Windows if you don't like it. I installed Unbuntu (dual boot) on my laptop and the whole OS kept freezing up every 10-15 minutes.
Topic archived. No new replies allowed.