Program in C?  (Without using IDE, etc)

oops that should be #include newname.a

Also, for clarification. The arduino libraries seem to be C++. When the IDE processes the sketch, it seems to produce a C++ file that calls the arduino C and C++ libraries. This then is passed to the gcc or is it g++? Which then compiles the code into a hex file according to the make instructions.

shouldn't those libraries work with gcc no matter where it is run from? Or why does it matter where the libraries are called from (arduino or avrstudio)? shouldn't they compile the same given the CPU and its speed are identified, adn since avr-gcc is used in both cases?

rep