473,325 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

suppressing warnings in boost header files

Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
Is there any way to designate system header files other than using
<>?

Thanks,
Bala

Jul 27 '07 #1
3 2598
us****@sta.samsung.com wrote:
Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
Is there any way to designate system header files other than using
<>?
You should ask in <news:comp.lang.c++>, since Boost header files are C++.
Maybe also a gcc or Boost mailing list.

Jul 27 '07 #2
us****@sta.samsung.com wrote:
Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
Is there any way to designate system header files other than using
<>?
Apologies for the previous reply. I did not see the headers. You've indeed
crossposted to comp.lang.c++ and gnu.gcc.help, among others.

Jul 27 '07 #3
us****@sta.samsung.com writes:
Is there any way to selectively suppress compiler warnings from
designated header files (Ex: Boost header files) using gcc-3.3.1 on
Linux PC?
We tried using -Wno-system-headers option but it did not seem to solve
the problem.
This is a question about gcc, not about either C or C++. Followups
redirected. (I dropped comp.sources.d as well.)
Is there any way to designate system header files other than using
<>?
You can usually use either
#include <header.h>
or
#include "header.h"

They differ in the way that the preprocessor searches for the file.
Unless you're intentionally replacing system headers (and if you do
that, you're on your own), you should use <>.

Why do you want to use something other than <>? What problem are you
trying to solve?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Naren | last post by:
Hello All, I dont get errors but I get warnings though the code runs fine. Could anyone help me removing these warnings c:\program files\microsoft visual studio\vc98\include\vector(48) : warning...
7
by: sbobrows | last post by:
{Whilst I think much of this is OT for this newsgroup, I think the issue of understanding diagnostics just about gets under the door. -mod} Hi, I'm a C++ newbie trying to use the Boost regex...
40
by: Dave Hansen | last post by:
Please note crosspost. Often when writing code requiring function pointers, it is necessary to write functions that ignore their formal parameters. For example, a state machine function might...
1
by: Karthik | last post by:
Hi, For my project I had set the VC++ compiler flag at its highest level ( /W4 ). While it is nice to see the warnings for my code, the project continues to list the warnings in the header files...
1
by: Qun Cao | last post by:
Hi Everyone, I just started to use boost.python and having problem trying to get my first program working. I have a C++ class foo.cpp, defined in foo.h, I wrote a wrapper class for it to...
1
by: 张沈鹏 | last post by:
How to compile the HelloWorld of boost.asio? Maybe this is a stupid problem , but I really don't konw how to find the right way. My compile environment is WinXP, Msys , MinGw , G++ 3.4.2,...
11
by: Osiris | last post by:
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea: I write the following C source file:...
5
by: usenet | last post by:
Is there any way to selectively suppress compiler warnings from designated header files (Ex: Boost header files) using gcc-3.3.1 on Linux PC? We tried using -Wno-system-headers option but it did...
1
by: Claire | last post by:
Visual Studio 2005 In my setup project, I've needed to include external setup files required to install a manufacturers smart card reader drivers. This collection of files includes those needed...
0
by: varnie | last post by:
hell-o !~ i faced weird problem during usage boost::pool_allocator. after i've changed: typedef boost::shared_ptr< param > ParamPtr; typedef std::vector< ParamPtr > ParamPtrVector; with:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.