undefined reference to `main'

I'm trying to help a student get arduino working, and he's getting the following error when tries to use the program, I'm lost, does this look familar to anyone?

/Users/kyleross/programming/arduino-0003/tools/avr/bin/../lib/gcc/avr/3.4.3/../../../../avr/lib/avr4/crtm8.o(.init9+0x0): In function `__bad_interrupt':

../../../crt1/gcrt1.S:104: undefined reference to `main'

o(.text+0xa): In function setPinModes': undefined reference topinMode'java.lang.NumberFormatException: For input string: "o(.text+0x16)" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:468) at java.lang.Integer.parseInt(Integer.java:518) at processing.app.Compiler.message(Compiler.java:537) at processing.app.MessageSiphon.run(MessageSiphon.java:60) at java.lang.Thread.run(Thread.java:552)

Looks like the sketch isn’t being linked against the Arduino core for some reason. Check the Arduino preferences.txt file and make sure “build.target” is set to “arduino” and that “build.extension” is “c”. Take a look in /lib/targets/arduino and make sure that wiring.c and wiring.h are there.