I would think that next question will be - where CB gets the configuration for arduino from ?
Check the toolchain settings for the compiler.
http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps
And why does it think that EEPROM ( for example ) should be a file ?
For this I would first check the Project settings.
If not there, then likely the Adv. Compiler Settings is the cause.
Tim S.
Thank you Tim.
The compiler is detected correctly - auto detection -> /usr/lib64/ccache.
Search directories has only"/usr/lib64/ccache/include"
I found and removed the var that was pointing to the second installation of the arduino's libraries. HAd to go thru all menus in the "Settings->Compiler"
Oh.... So if i check the "project build options" under "Search directories" i see _all_ libraries listed in the form of :
$(ARDUINO_DIR)/libraries/EEPROM etc etc.
If i select "Arduino Uno" under the probject -> there are only :
$(ARDUINO_DIR)/libraries
$(ARDUINO_DIR)/hardware/arduino/cores/arduino
$(ARDUINO_DIR)/hardware/arduino/variants/standard
listed. After i cleaned that up and tried to build:
avr-g++ -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -mmcu=atmega328p -D__AVR_ATmega328P__ -Os -I/usr/bin/arduino/hardware/arduino/cores/arduino -I/usr/bin/arduino/libraries -I/usr/bin/arduino/hardware/arduino/variants/standard -I/usr/lib64/ccache/include -c cores/CDC.cpp -o .objs/cores/CDC.o
avr-g++ -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -mmcu=atmega328p -D__AVR_ATmega328P__ -Os -I/usr/bin/arduino/hardware/arduino/cores/arduino -I/usr/bin/arduino/libraries -I/usr/bin/arduino/hardware/arduino/variants/standard -I/usr/lib64/ccache/include -c cores/HardwareSerial.cpp -o .objs/cores/HardwareSerial.o
avr-g++ -Wall -fno-exceptions -ffunction-sections -fdata-sections -x c++ -s -DF_CPU=16000000L -DARDUINO=103 -DUSE_EEPROM=0 -DUSE_ETHERNET=0 -DUSE_FIRMATA=0 -DUSE_LCD=0 -DUSE_LCD4884=0 -DUSE_OBD=0 -DUSE_SD=0 -DUSE_SERVO=0 -DUSE_SOFTSERIAL=0 -DUSE_SPI=0 -DUSE_STEPPER=0 -DUSE_TINYGPS=0 -DUSE_WIRE=0 -mmcu=atmega328p -D__AVR_ATmega328P__ -Os -I/usr/bin/arduino/hardware/arduino/cores/arduino -I/usr/bin/arduino/libraries -I/usr/bin/arduino/hardware/arduino/variants/standard -I/usr/lib64/ccache/include -c cores/HID.cpp -o .objs/cores/HID.o
cc1plus: error: /usr/bin/arduino/hardware/arduino/cores/arduino: Not a directory
cc1plus: error: /usr/bin/arduino/libraries: Not a directory
cc1plus: error: /usr/bin/arduino/hardware/arduino/variants/standard: Not a directory
Process terminated with status 1 (0 minute(s), 0 second(s))
It is clearly looking @ the wrong location for the libraries...