Is Windows Boost portable to other Windows systems?

I am considering two options for the program. Either C ++ with Boost Asynchronous IO or Java with Asynchronous NIO. I know that Java is portable if the system has java runtime. I would prefer to use C ++ with Boost, but I'm not sure if the program I'm writing can be ported to another Windows machine and still run. What do I need to do to ensure that the program has all the necessary dependencies at runtime? I plan to use only windows.h, the C ++ 2003 standard and Boost libraries.

+3
source share
2 answers

As long as you use Boost, the C ++ standard library (and CRT, if you think it is necessary), your code will be fairly easy to port.

Make sure you avoid any Microsoft CRT extensions, such as features str*_s(like here ). MSDN does not mark this very well as non-standard, unfortunately.

Also, avoid using the C ++ 0x features in Visual C ++ v10 for maximum portability in the short term - or to test other compilers that you are targeting, there are functions that you plan to use.

: windows.h, , . , , , - , " , " , , .

+3

boost CRT , .

+6

Source: https://habr.com/ru/post/1777961/


All Articles