Pages: [1]   Go Down
Author Topic: undefined reference to `main'  (Read 2099 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
I Love YaBB 2!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 to `pinMode'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)
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 <ARDUINO>/lib/targets/arduino and make sure that wiring.c and wiring.h are there.
Logged

Pages: [1]   Go Up
Jump to: