|
From: | Georg-Johann Lay |
Subject: | Re: [avr-gcc-list] Undefined reference to "setup" |
Date: | Tue, 10 Jul 2012 22:09:06 +0200 |
User-agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
Ron McCurdy schrieb:
[code] #include <Arduino.h> int main(void) { init(); #if defined(USBCON) USBDevice.attach(); #endif setup();for (;;) {loop(); if (serialEventRun) serialEventRun(); }return 0;} [ERROR]Undefined reference to "setup"What is wrong with this picture?
This is not AVR-specific and not GCC-specific. You use a function called setup that is implemented nowhere. Thus, the linker complains about that missing function. Johann
[Prev in Thread] | Current Thread | [Next in Thread] |