SyntaxFix
Write A Post
Hire A Developer
Questions
Use some preprocessor macro to check if it's in windows or linux. For example
#ifdef WIN32 LIB= #elif __GNUC__ LIB=wsock32 #endif
include -l$(LIB) in you build command.
You can also specify some command line argument to differentiate both.