- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How could I disable in a source filea Warning 673:
...
Warning #673: the initial sequence of preprocessing directives is not compatible with those of precompiled header file "Debug\\.pchi"
...
The same question is for Intel C++ compilerremarks...
Best regards,
Sergey
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure what version of the compiler or whether you are on Linux but the normal diagnostic disabling switch works for me.
sptxl8-403> icc -pch-use t.pch -c t.c
Warning #671: header files used to generate precompiled header file "t.pch" have changed
sptxl8-404> icc -pch-use t.pch -c -diag-disable 672 t.c
sptxl8-405>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>...How could I disable in a source filea Warning 673
Iunderlined that I want to disable that warning in a source file. It means, I can't disable that warning
with a #pragma warning ( disable : 673 ) directive, but I can disable it in a Visual Studio 2005 project.
OS: Windows XP 32-bit
IDE: Visual Studio 2005 SP1
C++ compiler: Intel C++Composer XE 2011 Update 9
I'll do another set of tests next week and I'll keep you informed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did a quick experiment. I successfully disabled warning #1079 "return type of function `main` must be `int`"with #pragma warning(disable:1079). Could you please upload your test case, so that Judy and I could reproduce this problem?
Thanks,
Feilong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok, I think I understand what the problem is now. Sorry for not reading your original post carefully enough.
The #pragma warning ( disable : 673 ) is itself considered a preprocessing directive.
So if you add it (to either the source or header file) AFTER the preprocessed file has been created then
it will itself cause a the warning to be emitted (and the warning will be emitted when the preprocessing directive
is initiallyparsed so the warning has not yet been disabled).
So what I would suggest is you put the #pragma warning (disable: 673) at the top of the header file that you
are precompiling and/or at the top of the source filebefore you actually create the precompiled header. This seemed to solve the problem for me.
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The #pragma warning ( disable : 673 ) is itself considered a preprocessing directive.
So if you add it (to either the source or header file) AFTER the preprocessed file has been created then
it will itself cause a the warning to be emitted (and the warning will be emitted when the preprocessing directive is initiallyparsed so the warning has not yet been disabled).
[SergeyK] Thank you. I didn't know this.
So what I would suggest is you put the #pragma warning (disable: 673) at the top of the header file that
you are precompiling and/or at the top of the source filebefore you actually create the precompiled
header. This seemed to solve the problem for me.
[SergeyK] This is exactlywhat I've done and unfortunatelyit doesn't work.I'm simply overwhelmed
by a set of different issues but I will be able to continue attempts to solve it next week.
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Feilong,
I'm currently integrating Intel C++ compiler with some project and I have lots of different issues similar to
'Warning 673' and because of this I'm unable to create a test case. Sorry about this and I'll keep you informed on my progress.
In overall, integration with the projectgoes well and Intel C++ compiler is the 5th supported compiler:
Microsoft C++ compiler - Done
MinGW C++ compiler - Done
Borland C++ compiler - Done
Turbo C++ compiler - Done
Intel C++ compiler - In progress
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
are precompiling...
I've spent some timeagain and I believe that there is an issue / problem with the warning #673.
Here is some information:
------ Build started: Project: IccTestApp, Configuration: Debug Win32 ------
Compiling with Intel C++ Compiler XE 12.1.3.300 [IA-32]... (Intel C++ Environment)
Stdphf.cpp
...
Compiling with Intel C++ Compiler XE 12.1.3.300 [IA-32]... (Intel C++ Environment)
IccTestApp.cpp
...
Warning #673: the initial sequence of preprocessing directives is not compatible with those of precompiled header file "Debug\IccTestAppD.pchi"
...
Linking... (Intel C++ Environment)
xilink: executing 'link'
Creating library ...\Debug\IccTestAppD.lib and object ...\Debug\IccTestAppD.exp
Embedding manifest... (Microsoft VC++ Environment)
IccTestApp - 0 error(s), 0 warning(s), 1 remark(s)
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
As you can see it is reported as a remark instead of asa warning.
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for the delay. I'm working with our developer to see what was wrong here.
Thanks,
Feilong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the update. Unfortunately, I can't provide a test case since I couldn't isolate a problem.
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind. Our developer believes that this problem(showing 1remark rather than 1 warning)is caused by the capitalized "W" in "Warning #673". They are fixing it. The fix is expected in the next 13.0 beta update.
Thanks,
Feilong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Best regards,
Sergey
- 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
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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