Code::Blocks Forums

User forums => Embedded development => Topic started by: informat on October 31, 2009, 02:46:32 pm

Title: include directories
Post by: informat on October 31, 2009, 02:46:32 pm
Hello alltogether,

I have a little project that is meant to run on an atmega644p but my question is rather basic:
I need to include these headers:

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include <avr/pgmspace.h>

and thus i went to:
->Build options ->Search directories ->Add ->/usr/lib/avr/include

the files are located in /usr/lib/avr/include/avr but still i get:

/home/davy/Mikrokopter/AQC/Software/aqc-dev/NaviControl/src/ns/ns2/avrfix/avrfix.h|25|error: avr/io.h: No such file or directory|
/home/davy/Mikrokopter/AQC/Software/aqc-dev/NaviControl/src/ns/ns2/avrfix/avrfix.h|26|error: avr/interrupt.h: No such file or directory|
/home/davy/Mikrokopter/AQC/Software/aqc-dev/NaviControl/src/ns/ns2/avrfix/avrfix.h|27|error: avr/signal.h: No such file or directory|
/home/davy/Mikrokopter/AQC/Software/aqc-dev/NaviControl/src/ns/ns2/avrfix/avrfix.h|28|error: avr/pgmspace.h: No such file or directory|
||=== Build finished: 4 errors, 0 warnings ===|

Please consider that i just started using CodeBlocks today ^^

kind regards,

informat
Title: Re: include directories
Post by: MortenMacFly on November 01, 2009, 07:38:18 pm
Inspect/Post the full build log (see may sig how to enable that option).
Title: Re: include directories
Post by: informat on November 07, 2009, 01:18:13 pm
ok, i messed up tha standard configuration for the avr-gcc, so the libraries truly were not included. ALso i included the wrong libc - not the one from /usr/include/avr/ ...

Best,
David