I have an subject at school where we code in C/C++ under Linux. We mostly do server/client apps using threads, semaphores, processes (fork(), pipes() etc.), IPCs. I have a MacBook and I don't really want to force it to run Ubuntu (which we use at school), so I wanna ask can I develop on Mac and then just take the code to Linux and compile it with g++?
For now I was able to do so but I'm not sure I will not encounter problems in the future. For example under Windows forks and sockets are done in completely different way, so i just would like to know where the differences are (OS X vs Ubuntu) to know I need to code that particular code under Linux.