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

Compile fails after upgrading to v4.0(undefined reference to `_Z9setupMenuv') #377

Closed
davetcc opened this issue Jul 15, 2023 Discussed in #376 · 2 comments
Closed

Compile fails after upgrading to v4.0(undefined reference to `_Z9setupMenuv') #377

davetcc opened this issue Jul 15, 2023 Discussed in #376 · 2 comments
Labels
bug Something isn't working generator-ui Issues in Generator UI ready-for-release
Milestone

Comments

@davetcc
Copy link
Collaborator

davetcc commented Jul 15, 2023

Set the default option back to source and generated code together, anything else is not supported by regular Arduino build system.

Discussed in #376

Originally posted by prowong July 7, 2023
All things work fine in v3.1. But after upgrading to v4.0, I just created a very simple menu with only two items, and the compilation error message is as follows. I've tried a full clean install with the same result. On the other hand, when opening the old version of the project in v4.0 and generating code, the compilation is successful. Any suggestions?

d:/program files/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\Patrick\AppData\Local\Temp\arduino\sketches\3797C9C34B5C4AC64A24480549BFE714\sketch\VNC008.ino.cpp.o:(.text.setup+0x0): undefined reference to _Z9setupMenuv'
collect2.exe: error: ld returned 1 exit status`

@davetcc davetcc added bug Something isn't working generator-ui Issues in Generator UI labels Jul 15, 2023
@davetcc davetcc added this to the 4.1.0 milestone Jul 15, 2023
@davetcc
Copy link
Collaborator Author

davetcc commented Jul 15, 2023

Should you hit this issue, simply set the build location property to all in one location (select root menu item in tree). we'll look at other options like a local library (which I think Arduino supports later.

@davetcc
Copy link
Collaborator Author

davetcc commented Jul 22, 2023

Unfortunately, there are no easy answers for regular Arduino build, it does not support local libraries in the lib directory, and it does not support subfolders, so for Arduino, everything must be in one directory.

PlatformIO, cmake and probably mbed - you can use any directory/storage option you like.
Arduino CLI/IDE - there must be not be a generated subfolder.

@davetcc davetcc closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working generator-ui Issues in Generator UI ready-for-release
Projects
None yet
Development

No branches or pull requests

1 participant