Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Multi INO file project compile problems (Read 3143 times)
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Multi INO file project compile problems
Jul 4th, 2020 at 5:03pm
Print Post  
Hi
I am trying to compile a project with multiple INO files. The code is example code for a menu system. I does compile in Arduino IDE but seem to not find the references to items contained in the other files in Visual Studio 2019.
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Multi INO file project compile problems
Reply #1 - Jul 5th, 2020 at 12:44pm
Print Post  
I think this is related to the new auto prototype generation added a few months ago. Can you email the .ino files so we can try it?

Thanks
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Multi INO file project compile problems
Reply #2 - Jul 5th, 2020 at 4:41pm
Print Post  
Tim I emailed the complete project file in a zip. Please let me know if you dont get that. I also attached it here
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Multi INO file project compile problems
Reply #3 - Jul 5th, 2020 at 5:24pm
Print Post  
Thanks, can't see the email but please attach LCDMenuLib2
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Multi INO file project compile problems
Reply #4 - Jul 6th, 2020 at 7:09am
Print Post  
Thanks Tim. I attached the lib here
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Multi INO file project compile problems
Reply #5 - Jul 6th, 2020 at 5:04pm
Print Post  
Brilliant thanks. The issue is with the insertion of missing pototypes. If you add a dummy method at line 88 that will workaround until a fix is available. For example at this to line 88:-

Code (C++)
Select All
void insertPrototypesBeforeMe()
{}
 



More info

The prototypes are being inserted (in background) after line 89 instead of before it. Line 89 passes a "function reference" as a paramater to a function call. The new ctags prototype system in visual micro is not detecting the reference, therefore it believes the prototypes are not needed until later in the code.

Thanks for the report!
  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Multi INO file project compile problems
Reply #6 - Jul 6th, 2020 at 7:02pm
Print Post  
Hi Tim
The workaround works fine thanks. I would never have found that. You are a genius.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint