Skip to content

undefined reference to setup / loop #547

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

Open
achu1431 opened this issue Jan 24, 2018 · 3 comments
Open

undefined reference to setup / loop #547

achu1431 opened this issue Jan 24, 2018 · 3 comments

Comments

@achu1431
Copy link

achu1431 commented Jan 24, 2018

`
New Text Document (3).txt
ov7670.h.txt

./opt/arduino-builder/arduino-builder` -compile -core-api-version 10611 -build-path /tmp/266865351/build -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -libraries /tmp/266865351/pinned -libraries /tmp/266865351/custom -fqbn arduino:avr:uno -build-cache /tmp -logger humantags -verbose=false /tmp/266865351/sketch_jan24a

/tmp/ccGoZPWp.ltrans0.ltrans.o: In function `main':

/home/admin/builder/opt/cores/arduino/avr/cores/arduino/main.cpp:43: undefined reference to `setup'

/home/admin/builder/opt/cores/arduino/avr/cores/arduino/main.cpp:46: undefined reference to `loop'

collect2: error: ld returned 1 exit status

exit status 1

@achu1431
Copy link
Author

could'nt find the solution for long time..pls help me frnds,,,tnx in advance

@sudar
Copy link
Owner

sudar commented Jan 24, 2018

@achu1431

Can you post your full makefile and source file?

@sej7278
Copy link
Collaborator

sej7278 commented Jan 24, 2018

if he's calling arduino-builder he's not even using the makefile. he may have just confused issue #370

i seem to recall some old problem where you can't have your own main()

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

No branches or pull requests

3 participants