Hello,
I walked through the instructions in wiki and succeeded to connect (read MCU type from Arduino board).
Next I tried to create a library project. I used the suggested settings (optimize for size, do not include debugging info). The core library size after build is 11172 bytes, whereas the core.o copied from Arduino IDE sketch library is 113348 bytes.
I looked in the "Release" folder of the project and found these object files:
pins_arduino.o
WInterrupts.o
wiring_analog.o
wiring.digital.o
wiring_shift.o
wiring.o
It seems something is missing (HardwareSerial, Print, etc.). What did I do wrong?
I suspect that the instructions in the wiki date from the time when serial and print hadn't been re-factored. Also, the arduino environment does generate debugging info (with -g; I'm not sure why, since there's currently no debugging support, but it shouldn't hurt anything.) Comparing exact sizes of built files is going to be risky at best!
By all means turn on "build.verbose" in the arduino prefs, and get a look at what it's actually doing these days
C:\bin\arduino-0018\hardware\tools\avr\bin\avr-ar rcs D:\Users\JINDRI~1\AppData\Local\Temp\build331233160927895387.tmp\core.a D:\Users\JINDRI~1\AppData\Local\Temp\build331233160927895387.tmp\pins_arduino.c.o
C:\bin\arduino-0018\hardware\tools\avr\bin\avr-ar rcs D:\Users\JINDRI~1\AppData\Local\Temp\build331233160927895387.tmp\core.a D:\Users\JINDRI~1\AppData\Local\Temp\build331233160927895387.tmp\WInterrupts.c.o
C:\bin\arduino-0018\hardware\tools\avr\bin\avr-ar rcs D:\Users\JINDRI~1\AppData\Local\Temp\build331233160927895387.tmp\core.a D:\Users\JINDRI~1\AppData\Local\Temp\build331233160927895387.tmp\wiring.c.o ... + all other object files from both C and C++ ...
Obviously, in Eclipse it does not build from C++ sources, I will look into eclipse project config, maybe it is wrongly set (my fault).
Thank you for the hint with build.verbose, might be useful again next time I am lost
The problem really was between the chair and the keyboard. If a project contains C++ source files, it must be created in Eclipse as C++ Project, not a C Project