Code::Blocks Forums

User forums => Help => Topic started by: Nico on August 09, 2016, 11:44:44 am

Title: How to add a library as "system library"?
Post by: Nico on August 09, 2016, 11:44:44 am
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 (http://stackoverflow.com/a/1900578/1179925) 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
Title: Re: How to add a library as "system library"?
Post by: stahta01 on August 09, 2016, 02:23:49 pm
IIRC, compiler extra settings or other settings.

Tim S.