User forums > Using Code::Blocks

Excessive warning messages Visual Toolkit 2003 PlatformSDK

(1/2) > >>

dwmcqueen:
I searched and couldn't find any info.  But when I install the Visual C++ Toolkit 2003 and the PlatformSDK, the compile has quite a few warning messages (similar to _WIN_NT not defined, I recall) related to code in the PlatformSDK.  Is there anyway to supress these messages or address them?

Vampyre_Dark:
This has to do with your own code, not C::B. I get no warnings or problems with 2003 tk out of the box. Unless you didn't include the right paths to your platform SDK in the C::B compiler options.

Biplab:
Hi,

I am also facing similar problem. I have installed Windows® Server 2003 R2 Platform SDK and Visual C++ Toolkit 2003. It throws me a lot of std::ios and related errors.

Are they incompatible with each other?  :(

dwmcqueen:
Maybe it is my code, although MinGW doesn't give the same warnings.  And my code is so basic, I am not sure why it generates more warning messages than actual lines of code (just a basic winsock operation).  Some of the warnings make no sense (like _WIN_NT_ not defined).  I'll post my project and the exact warnings tonight.

dwmcqueen:
Here are some of my messages :


--- Quote ---:: === NetCommRedo, Release ===
c:\Projects\NetCommRedo\main.h:7: warning C4668: 'BUILDING_DLL' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
C:\PlatformSDK\Include\BaseTsd.h:98: warning C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
C:\PlatformSDK\Include\WinNT.h:1182: warning C4668: '_WIN32_WINNT' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
C:\PlatformSDK\Include\WinNT.h:1443: warning C4668: '_WIN32_WINNT' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
C:\PlatformSDK\Include\WinNT.h:1443: warning C4668: '_WIN32_FUSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
C:\PlatformSDK\Include\WinNT.h:5280: warning C4820: '_SECURITY_QUALITY_OF_SERVICE' : '2' bytes padding added after member '_SECURITY_QUALITY_OF_SERVICE::EffectiveOnly'
C:\PlatformSDK\Include\WinNT.h:5291: warning C4820: '_SE_IMPERSONATION_STATE' : '2' bytes padding added after member '_SE_IMPERSONATION_STATE::EffectiveOnly'
--- End quote ---

This continues on for 838 warnings.  My code is relatively simple, but I think I must have a configuration set wrong.  I am building  dll

Navigation

[0] Message Index

[#] Next page

Go to full version