c++ - Is a Boost windows program portable to other windows systems? -
i'm considering 2 options program. either c++ boost asynchronous io or java asynchronous nio. know java portable long system has java run time. i'd prefer use c++ boost i'm not sure if program write can ported different windows machine , still run. need ensure program has necessary dependencies @ runtime? plan on using windows.h, c++ 2003 standard, , boost libraries.
so long use boost, c++ standard library (and crt, if feel must), code port pretty easily.
make sure avoid microsoft crt extensions such str*_s
functions (e.g. here) - msdn not flag these nonstandard, unfortunately.
also avoid using c++0x features in visual c++ v10 maximize portability in short term - or check other compilers targeting have features plan use.
be careful: if use bunch of stuff out of windows.h
, break portability , increase work need do. avoid as possible if expect port later, , if need there, try isolate usage in distinct 'i need change when port' header , code files of own, know need @ subset of code when porting os.
Comments
Post a Comment