- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"problem with microsoft compilation"
with no indication as to what the compiler thinks the problem is.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As a house standard, we require zero warnings for compilations. Unless we can resolve this, we will have to abandon v9.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Our code is vanilla C++ ( no COM etc).
Message Edited by vasci_intel on 12-13-2005 07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The warning doesn't seem to effect, or indicate any problenm with, the end product, but we would have a problem getting this past our QA team (we'd be obliged to return to v8 of the compiler).
Yes, we do have COM interfaces in the program. It talks to MS Word (oh that I could only write 'vanilla C++', such bliss :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Intel driver calls the MS compiler for a couple of things, mainly for source browse information and for minimal rebuild. If the MS compilation fails in any way (the Intel driver does not do any extensive checking as to why) the warning seen above is emitted. This is an informative warning and does not affect the Intel compilation. Of course, if the MS compiler fails, the source browse or minimal rebuild (or any other reason) information will not be complete.
When you see this warning from the Intel compiler, the underlaying problem could be a variety of things. The Intel compiler is detecting an incompatibility with the Microsoft compiler. Consider compiling this case with the Microsoft compiler to see what the error is. It would be advisable to use the same command line and environment when using the MS compiler as the Intel compiler to compile that file.
Note that you can get this warning anytime you have source that compiles ok with the Intel compiler but will not compile with the Microsoft compiler (and you need to invoke MS for one of the reasons mentioned above.)
For example here is a C99 source that you could compile with the Intel compiler:
struct A {
int a;
} f[20] = { [3].a = 1};
int main()
{
return f[3].a - 1;
}
[0 test] icl -nologo -Qc99 -c t.c -FRt.sbr
t.c
icl: warning: problem with Microsoft compilation of 't.c'
The fix for a case like this is to put conditional compilation around code that won't compile with MS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suppose it's one of those warning we'll have to live with.
Thanks for the detailed explanation and the neat little sample (hairy code, doesn't come into it). Your time is much appreciated.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page