<p>With all the fuss about opensource projects, how come there is still not a strong standard that enables you to make portable code (I mean in <code>C/C++</code> not <code>Java</code> or <code>C#</code>)
Everyone is kind of making it's own soup.<br><br>
There are even some third party libs like <code>Apache Portable Runtime</code>.</p>

[{'answer_id': 61511, 'author': 'jfs', 'author_id': 6223, 'author_profile': 'https://Stackoverflow.com/users/6223', 'pm_score': 1, 'selected': False, 'text': "<p>I think the main reason there isn't any single library anyone agrees on is that everyone's requirements are different. When you want to wrap system libraries you'll often need to make some assumptions about what the use cases will be, unless you want to make the wrapper huge and impossible to work with. I think that might be the main reason there's no single, common cross platform runtime.</p>\n\n<p>For GUI, the reason would be that each platform has its own UI conventions, you can't code one GUI that fits all, you'll simply get one that fits just one or even none at all.</p>\n"}, {'answer_id': 61569, 'author': 'Mladen Janković', 'author_id': 6300, 'author_profile': 'https://Stackoverflow.com/users/6300', 'pm_score': 3, 'selected': False, 'text': '<p>Yes, there is no standard but libraries like <strong>Qt</strong> and <strong>boost</strong> can make your life much easier when you do cross-platform development.</p>\n'}, {'answer_id': 61578, 'author': 'dwestbrook', 'author_id': 3119, 'author_profile': 'https://Stackoverflow.com/users/3119', 'pm_score': 1, 'selected': False, 'text': "<p>There are many libraries that make cross-platform development easier on their own, but making a complete wrapper for all platforms ends up being either small and highly customized, or massive and completely ridiculous.</p>\n\n<p>Carried to it's logical conclusion, a complete wrapper for all aspects of an operating system becomes an entire virtual runtime. You might as well make your own programming language.</p>\n"}, {'answer_id': 61626, 'author': '17 of 26', 'author_id': 2284, 'author_profile': 'https://Stackoverflow.com/users/2284', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://www.cse.wustl.edu/~schmidt/ACE.html" rel="nofollow noreferrer">The ADAPTIVE Communication Environment (ACE)</a> is an excellent object oriented framework that provides cross-platform support for all of the low level OS functionality like threading, sockets, mutexes, etc.  It runs with a crazy number of compilers and operating systems.</p>\n'}, {'answer_id': 63024, 'author': 'Steve Pitchers', 'author_id': 7255, 'author_profile': 'https://Stackoverflow.com/users/7255', 'pm_score': 0, 'selected': False, 'text': '<p>If you make sure it compiles cleanly with both GCC and MS VC++, it will be little extra effort to port to somewhere else.</p>\n'}, {'answer_id': 63051, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>wxwidgets is a great abstraction layer on the native GUI widgets of most window managers.</p>\n'}, {'answer_id': 64604, 'author': 'Mathieu Pagé', 'author_id': 5861, 'author_profile': 'https://Stackoverflow.com/users/5861', 'pm_score': 1, 'selected': False, 'text': '<p>C and C++ as languages are standards languages. If you closely follow their rules when coding (That means not using vendor-specific extensions) you\'re code should be portable and you should be able to compile it with any modern compiler on any OS.</p>\n\n<p>However C and C++ don\'t have a GUI library, like Java or C#, however there exist some free or commercial GUI libraries that will allow you to write portable GUI applications.</p>\n\n<p>I think the most populars are <a href="http://trolltech.com/products/qt/" rel="nofollow noreferrer">Qt</a> (Commercial) and <a href="http://www.wxwidgets.org/" rel="nofollow noreferrer">wxWidgets</a> (FOSS). According to <a href="http://en.wikipedia.org/wiki/List_of_widget_toolkits#Based_on_C_or_C.2B.2B_.28including_bindings_to_other_languages.29" rel="nofollow noreferrer">wikipedia</a> there is a lot more.</p>\n\n<p>There is also boost, while not a GUI library <a href="http://www.boost.org/" rel="nofollow noreferrer">boost</a> is a really great complement to C++\'s STL. In fact some of the boost libraires will be added in the next C++ standard.</p>\n'}]
['https://Stackoverflow.com/questions/61499', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2566/']