Author Topic: Change default include directories.  (Read 6009 times)

kript0n

  • Guest
Change default include directories.
« on: September 14, 2015, 10:44:51 am »
I use CodeBlocks for avr programming. Now it looks for include files in /usr/include and /usr/lib/avr/include folders. I'm trying to include <inttypes.h> from "avr" directory but codeblocks finds two files with the same name in folders named before and includes file from /usr/include.  How can I remove "/usr/include" from search path?  In build options "search directories" tab is empty.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Change default include directories.
« Reply #1 on: September 14, 2015, 09:21:54 pm »
You have to remove the path from the Settings -> Compiler -> AVR GCC -> Search paths -> Compiler.

I've been bitten by this problem, but I don't know how to reproduce it reliably.
If you know the steps don't hesitate to post a ticket on sourceforge.net.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]