I have working code that runs fine on Linux but when I try to compile it in Windows 7 with Visual Studio 12 I get this error:
error C3646: '__attribute__' : unknown override specifier
error C2065: 'weak' : undeclared identifier
error C2072: 'operator <<' : initialization of a function
Does anyone know what could be causing this?