This question shows research effort; it is useful and clear
-3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
I have a file.cpp which as an file.h included. This works on windows. Is there a easy way to change the code to be compiled on linux or do I have to rewrite all of it.
Some Pointers towards Porting Code to different OS:
Check all the system headers included in the file. If there are OS specific headers, put them under OS specific macros and add different header files appropriate to Linux OS
Check all the system function calls and replace them.
Check if there are any compiler specific macros or code present and change it.
Check if the data types used are supported in all OS.