However, you can expect only "textbook" C++ programs to work cross-platform. If your C++ application accesses OS-specific APIs or frameworks, then they will work only on that specific OS. If you want GUI-based applications to work cross-platform, then you must use compile your applications to a cross-platform frameworks.