Greets,
There are a few things you need to look at. 1) Your #include paths. Some #include files take precedence over another if found first; 2) any pre-defined pre-processor macros. Some of them are always created for you by default (such as those by the friendly Code::Blocks Wizards) or those which are created for you in your other IDE; 3) any pre-processor macros that you might need to actually add to your own code to work with a particular source file.
When in doubt, check the file that complains: chances are you will still need to do a bit of 'grep' work to find the file that is causing the problem. Looking at the header file where the problem appears, does it appear around an "#if #else #endif" block? What caused that to be included?
If you go back to your VS project and examine it's pre-defined symbols, are they all defined in your Code::Blocks project too? Keep in mind there may be some (as I have seen commented out) compiler specific directives that may cause other issues.
Regards,
Joe