Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to learn C++ because I already know Java and C#, so I figured I would learn the last of the top 3 programming language bosses.

So I downloaded the C++ Eclipse version, but am a little confused. When I go to create a project I need to hook into "toolchains". I have no idea what these are.

What settings will I need to select to create a C++ program that will run on Mac, Linux, and Windows?

Thanks!
Posted

Toolchains : I'd use the one toolchain that is the default (if one is available); or what is installed on your machine (i.e. if you have gcc/g++ , I would assume the default toolchain will be that.

In any case, when one wants to be able to program multi-platform, one has 2 development path :

1- use only the lowest common API available between the different platforms, meaning that all UI, and most/all low level API will need to be re-written to fit the difference in the environment. Luckily, C++ with STL and boost will offer a good cross-platform solution. But you will probably have to generate a different project/build environment for each platform and/or learn to use make (and makefiles)

2- use a toolkit that support all environment like QT; the up side is that it should be easy to build on the different platforms; the downside is that because it is cross-platform the behaviour will not be as native as one would expect. (some UI will feel weird on the different platforms (but that is from experience with QT from a few years ago)

Good luck
 
Share this answer
 
Isn't google compatible with Linux?
 
Share this answer
 
Comments
Albert Holguin 1-Aug-11 16:08pm    
I almost spit my water out laughing
Sergey Alexandrovich Kryukov 1-Aug-11 23:59pm    
Great! My 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900