Author Topic: How to add a library as "system library"?  (Read 2388 times)

Offline Nico

  • Single posting newcomer
  • *
  • Posts: 2
How to add a library as "system library"?
« 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 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
« Last Edit: August 09, 2016, 11:46:50 am by Nico »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: How to add a library as "system library"?
« Reply #1 on: August 09, 2016, 02:23:49 pm »
IIRC, compiler extra settings or other settings.

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