Saturday, May 22, 2010

C/c++ portability question?

If i make a simple c++ programme that uses winsock and compile it how portable will it be?





When i say portability i mean will i need any runtime files, I know i will need the winsock.dll but that is standard with most windows versions now

C/c++ portability question?
winsock is quite old? used to use it for modems is i recall, 12 years ago?!?!





as for portability 100% sticking to the standard libs / api's will make that possible... windows wise anyway.. if you want to have cross platform use only lib's that are built on multi formats or the standard libs on all formats ..e.g. stdio etc
Reply:You'll need the C or C++ runtime, depending on which language you used. (Or both if you used both). And the runtime is provided by your compiler manufacturer. Basically, it's a question of what libraries you used right? EIther you statically link them into the executable, or you ship them with the exe.





But this really isn't what portability means. It's just proper packaging.


No comments:

Post a Comment