User forums > Embedded development

include directories

(1/1)

informat:
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

MortenMacFly:
Inspect/Post the full build log (see may sig how to enable that option).

informat:
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

Navigation

[0] Message Index

Go to full version