How are crossplatform/multiple-OS C++ projects planned in terms of code and tools?

Posted by Nav on Programmers See other posts from Programmers or by Nav
Published on 2012-09-30T15:58:10Z Indexed on 2012/09/30 21:49 UTC
Read the original article Hit count: 271

I want to create a project in C++ that can work in Windows, Linux and Embedded Linux.

How are projects created when they have to work across many OS'es? Is it first created on one OS and then the code slowly modified to be ported to another OS? Eg: to me, the Linux version of Firefox appears to be created as a Windows project and a separate Linux project with a different code base, since Firefox behaves a bit different in Windows and Linux. Although the source code download is surprisingly a single link.

If QT is used for UI, Boost threads for threading, Build Bot for CI and NetBeans/Eclipse/QT Creator for an IDE, would a person be able to minimise the amount of code re-write required to get the project onto another OS? Is this the right way to do it, or are such projects meant to be created as two entirely separate projects for two separate OS'es?

© Programmers or respective owner

Related posts about c++

Related posts about cross-platform