Answer the question
In order to leave comments, you need to log in
How are cross-platform libraries written?
The following question has long been of interest: how are cross-platform libraries generally written? In outline? Those. I can only suggest two options:
either a separate implementation based on the api of the system is written for each OS (Windows, Linux, Apple), and then through macros it is done so that, for example, if Windows is used, the Windows implementation is used, etc.
or somehow it can be written in assembler ... Ie. for example, if a GUI library (such as Qt) then, for example, manually drawing buttons and other interface elements pixel by pixel, etc. Here I can’t even imagine how dreary it is and whether it’s real at all.
Answer the question
In order to leave comments, you need to log in
or a separate implementation based on the system api is written for each OS (Windows, Linux, Apple), and then through macros it is done so that, for example, if Windows is used, the Windows implementation is used, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question