After surprisingly little hacking about, I managed to get libc++ installed on my Linux box (as libstdc++ is missing things). Unfortunately, a bit of my existing code has now broken, on account of functions with the same name.
Normally, and in the manner I need, bind() relates to sockets. However, libc++ came with its own bind() function, which is basically this but without a convenient namespace to separate them. In accordance with Murphy's Law, the compiler attempts to use the wrong function, and spits out an error. NetBeans does not see any issue, because it's actually looking in the sys/socket.h file, as it very well should.
So, with both functions basically beyond the scope of my control, how would I tell the compiler (clang++) that it should look in a specific header and nowhere else for that function?