News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

include directories

Started by informat, October 31, 2009, 02:46:32 PM

Previous topic - Next topic

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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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