User forums > Using Code::Blocks

Change default include directories.

(1/1)

kript0n:
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.

oBFusCATed:
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.

Navigation

[0] Message Index

Go to full version