Author Topic: include directories  (Read 29105 times)

Offline informat

  • Single posting newcomer
  • *
  • Posts: 2
include directories
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: include directories
« Reply #1 on: November 01, 2009, 07:38:18 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline informat

  • Single posting newcomer
  • *
  • Posts: 2
Re: include directories
« Reply #2 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