4 ms·
I have seen comments that suggest you can write cross-platform applications (or at least shared business logic) in c++. Is that the case? If so, how would you
by dvdhnt 7y ago
I have seen comments that suggest you can write cross-platform applications (or at least shared business logic) in c++.
Is that the case? If so, how would you recommend someone go about learning c++?
- gumby 7y agoI read Stroustrup's "tour of C++" then looked specifically for blogs that talked about C++ 17. And wrote a lot of code with all warnings enabled. Yes you can write cross platform applications though perhaps only the engine, not UI.
- McP 7y agoQt is great for cross platform UI, for Mac/Win/Linux at least
- 77pt77 7y agoLast time I checked QT depended on a signal/slot mechanism that was not C++ compatible. There was a code generator. Has this changed?
- xfer 7y agoNo. But there are alternatives to moc like: https://github.com/woboq/verdigris https://github.com/woboq/verdigris .
- 77pt77 7y agoThank you. Very interesting work.
- de_watcher 7y agoIf you use CMake you don't see that generator. It automagically works.
- jcelerier 7y ago> Last time I checked QT depended on a signal/slot mechanism that was not C++ compatible. what do you mean by "not C++ compatible" ? Qt is 100% C++ code. The few macros you see (signals:, slots:, emit) are #defined to nothing or public: / private: in a Qt header
- davrosthedalek 7y agoAs in: recompile and works? For sure, see for example a lot of the HEP/NP software which runs typically on Linux, BSDs (incl. MacOS) and I think even Windows. As in: have the same binary? You could probably use the same object files, but shared libraries and executables probably won't work (without trickery), just because the file format is different.