News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to add a library as "system library"?

Started by Nico, August 09, 2016, 11:44:44 AM

Previous topic - Next topic

Nico

Hello,

I have a project that uses some of the Boost libraries. It all works, but when I build the program I get over 500 warnings from the Boost library. This makes it very hard to act on the warnings.

I checked a bunch of them and I found that most of them are pointing to the some code in the Boost library. I do not think I am capable of improving the Boost libraries (at least not yet), so I would like to ignore those warnings. On StackOverflow I found a tip that GCC will ignore warnings that originate from a system library (header files included using -isystem instead of -I).

In the code::blocks project I could only find "add file", so now I hope somebody can tell me if it is possible to tell code::blocks to include the Boost headers with -isystem instead. And if this is possible, I would like to know how to do it.

Kind regards, Nico

stahta01

IIRC, compiler extra settings or other settings.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]