Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined setup() and loop() #12

Open
PARoby opened this issue Jun 20, 2018 · 0 comments
Open

Undefined setup() and loop() #12

PARoby opened this issue Jun 20, 2018 · 0 comments

Comments

@PARoby
Copy link

PARoby commented Jun 20, 2018

I can't make PS2X_lib.cpp a library because Arduino says:

PS2X_lib.cpp:6: error: unterminated #else
#if ARDUINO > 22
^
exit status 1
unterminated #else

and for PS2X_lib.h, it says:

Archiving built core (caching) in: /var/folders/ps/0p5g4lb54152xx5zmb1h5k180000gn/T/arduino_cache_827109/core/core_arduino_avr_uno_cd6542aa3ca11c3dde011c642ad7cbf2.a
/var/folders/ps/0p5g4lb54152xx5zmb1h5k180000gn/T//cciOf0PX.ltrans0.ltrans.o: In function 'main':
/private/var/folders/ps/0p5g4lb54152xx5zmb1h5k180000gn/T/AppTranslocation/7956EF4A-5F6B-4626-B17F-4FD18720B300/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:43: undefined reference to 'setup'
/private/var/folders/ps/0p5g4lb54152xx5zmb1h5k180000gn/T/AppTranslocation/7956EF4A-5F6B-4626-B17F-4FD18720B300/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:46: undefined reference to 'loop'
collect2: error: ld returned 1 exit status
exit status 1

what am I suppose to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant