Answer the question
In order to leave comments, you need to log in
C++ program on external media for Win, Linux, Mac OS?
Good afternoon.
Tell me, is it possible to run a program written in C ++, which is located on external media, on all operating systems without recompiling?
Those.
There is a program that uses / modifies certain files on a flash drive. For example, there is a file "age". The user enters his age and this value is stored in this file (for example, this value was entered by a Linux user), then when starting this program from a flash drive under Windows, the user could enter his age and it would be written to the same file and any user of any OS could get the data from the "age" file.
What is the best way to organize such a program?
Compile several versions of the program for each OS on a USB flash drive and run the desired version with a specific OS?
Answer the question
In order to leave comments, you need to log in
Compile several versions of the program for each OS on a USB flash drive
Compile several versions of the program for each OS on a USB flash drive and run the desired version with a specific OS?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question