Setting up Arduino environment in eclipse using AVRDude

I am trying to compile the core library as per instructions here:

http://playground.arduino.cc/Code/Eclipse

However, I am getting the following error:

Building target: arduino_core.elf
Invoking: AVR C++ Linker
avr-g++ -Wl,-Map,arduino_core.map,--cref -mrelax -Wl,--gc-sections -mmcu=atmega328p -o "arduino_core.elf" ./src/avr-libc/malloc.o ./src/avr-libc/realloc.o ./src/CDC.o ./src/HID.o ./src/HardwareSerial.o ./src/IPAddress.o ./src/Print.o ./src/Stream.o ./src/Tone.o ./src/USBCore.o ./src/WInterrupts.o ./src/WMath.o ./src/WString.o ./src/main.o ./src/new.o ./src/wiring.o ./src/wiring_analog.o ./src/wiring_digital.o ./src/wiring_pulse.o ./src/wiring_shift.o
./src/main.o: In function main': main.cpp:(.text.startup.main+0x2): undefined reference to setup'
makefile:67: recipe for target 'arduino_core.elf' failed
main.cpp:(.text.startup.main+0xa): undefined reference to `loop'
collect2: error: ld returned 1 exit status
make: *** [arduino_core.elf] Error 1

Any guidance on what the issue is would be appreciated.

avr-g++ -Wl,-Map,arduino_core.map,--cref -mrelax -Wl,--gc-sections -mmcu=atmega328p -o "arduino_core.elf"  ./src/avr-libc/malloc.o ./src/avr-libc/realloc.o  ./src/CDC.o ./src/HID.o ./src/HardwareSerial.o ./src/IPAddress.o ./src/Print.o ./src/Stream.o ./src/Tone.o ./src/USBCore.o ./src/WInterrupts.o ./src/WMath.o ./src/WString.o ./src/main.o ./src/new.o ./src/wiring.o ./src/wiring_analog.o ./src/wiring_digital.o ./src/wiring_pulse.o ./src/wiring_shift.o

This command would be typical of building an application, not a library.
The arduino IDE builds the individual .o files, and assembles them into a random access library with "avr-ar"; I would assume that you'll need to do something similar in eclipse.