Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: kript0n on September 14, 2015, 10:44:51 am

Title: Change default include directories.
Post by: kript0n 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.
Title: Re: Change default include directories.
Post by: oBFusCATed 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.