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

Simple platformio build gives: "undefined reference to `loop'" #39

Open
pitosalas opened this issue Jul 8, 2024 · 1 comment
Open

Comments

@pitosalas
Copy link

When I platformio "build" I get this error:

Screenshot 2024-07-08 at 3 44 42 PM

Note that this is after I changed this in platformio.ini:

[env:teensy40]
platform = teensy
board = teensy40
;board = teensy41
framework = arduino

On GitHub, the teensy 40 is commented out and 41 is active.

Do you have any suggestions on how I can get this to build?

Thanks!

@Richard-Gemmell
Copy link
Owner

Hi,

I suspect the problem is that setup() and loop() aren't defined. I usually just copy one of the example .ino files into the src directory and rename it main.cpp. raw_find_slaves.ino is a good one to start with.

I don't have this project setup at the moment so I can't check my answer. Please let me know if this helps.

cheers,
Richard

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

2 participants