- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recently upgraded the Intel C++ Compiler in my build environment from v11 (067) to v12 (12.0.1.127 Build 20101116).
With the new compiler, I get error #791 when compiling rpcndr.h (a header in the MS Windows DDK). The same file compiles without issue with v11.
The offending lines of code are lines 1428-1446:
RPCRTAPIunsigned char * RPC_ENTRYRPC_ENTRYNdrCsArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,unsigned char ** ppMemory,PFORMAT_STRING pFormat,unsigned char fMustAlloc);RPCRTAPIunsigned char * RPC_ENTRYRPC_ENTRYNdrCsTagUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,unsigned char ** ppMemory,PFORMAT_STRING pFormat,unsigned char fMustAlloc);
Documentation of the error is sparse:
Thanks,
Phill Williams
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This diagnostic is never an error by default. It is only a warning. You must be doing something special (like using the /WX command line option) to turn this warning into an error.
The warning occurswhen you specify the same calling convention more than once on a functiondeclaration, i.e.:
void __cdecl __cdecl foo();
If you preprocess the file (using -E or -P) you should be able to see the actual declarations after macro expansion.
Judy
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This diagnostic is never an error by default. It is only a warning. You must be doing something special (like using the /WX command line option) to turn this warning into an error.
The warning occurswhen you specify the same calling convention more than once on a functiondeclaration, i.e.:
void __cdecl __cdecl foo();
If you preprocess the file (using -E or -P) you should be able to see the actual declarations after macro expansion.
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you -- it appears that the WDK build infrastructure inserts /WX by default. Overriding this fixed my build.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page