I've been programming on win for the longest time, and I've been wanting to learn how to make portable stuff. For instance, sockets. I've heard that BSD sockets are cross-platform, and I checked google, but it doesn't seem that MinGW has the headers I need for them. So if you know where I can get all the stuff I need for that, that'd be great. And what about headers and libs that are portable? Are there many functions in the C library that aren't cross-platform? Such as beginthread and endthread for instance. Are there any libraries you know of that would make it easy to make cross-platform progs? Any info I can get would be helpful. I want to make stuff that will work on anything. Not just win.
-Cons
fro threads i think theres a pthread.h and sockets can be ported with minimal #ifdef/#else/#endif