User forums > Help

How to add a library as "system library"?

(1/1)

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.

Navigation

[0] Message Index

Go to full version