[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

compiling error menu cpp RSS feed
Forum Index » tcMenu Arduinio library
Author Message
rtully


Joined: Oct 4, 2019
Messages: 10
Offline

Line in the menu.cpp

RENDERING_CALLBACK_NAME_INVOKE(fnSettingsRtCall, backSubItemRenderFn, "settings", -1, NULL)

gives compile error

'const char fnSettingsRtCallPgm [9]' previously defined here

Am i missing something basic here?

thanks
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
The only way I could see this happening is if you had a menu with the same name repeated twice, please could you include an example project emf file that can recreate the issue. EMF files are JSON and can be pasted as code into here.
rtully


Joined: Oct 4, 2019
Messages: 10
Offline
smilie doh! yup had a duplicate title hidden in there. Thanks
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
If you enable the fully qualified naming option in the generator you can have the same menu name in different sub menus, but you can’t have two items with the same name in one submenu.

Glad it solved the problem!
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.