PDA

View Full Version : portability



sanujas
27th February 2014, 10:12
Hi,
I have doubt regarding portability.
If i developed one sample code on windows system, will it be portable on linux with minimum changes, and what type of changes will be those?

Thanks,
sanujas

anda_skoa
27th February 2014, 12:47
This cannot be answered generically.

If you use Windows specific API then this will not build on anything other than Windows.
If you don't use Windows specific API then it should build on all supported platforms.

If you are using Windows specific data, e.g. filenames with Windows drive letters, then those will not work on non-Windows platforms.

In a lot of cases it is possible to write programs that build and run on multiple Qt supported platforms without any change.
But there can be corner cases and those need to be addressed individually.

Cheers,
_