You can use any type of OS that supports C++ as programming language, there are libraries with the same name or different name which do the same result.
It is better to learn the similarities of the libraries on mot of the OS and then port your code to be compiled on other operating systems/ compiler (Cross-Platform Applications), To make a cross platform application you must understand the C++ preprocessor, and creating abstract Functions/Classes where the source will be compiled on a certain platform.
A simple cross-platform application would be:
First you would need to create a header that will contain your include files:
- Code: Select all
//this symbols could be defined in the project configuration type win32(this is OS specific for windows), win64, unix, mac, gcc, etc
#ifdef WIN32
#include "WinMyLib.h"
#elif defined(unix)
#include "UnixMyLib.h"
#elif defined(__APPLE__)
#include "MacMyLib.h"
#endif