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 Can't find Start() & loop() methods (Read 666 times)
BlueCat
Junior Member
**
Offline


Posts: 14
Joined: Apr 27th, 2018
Can't find Start() & loop() methods
May 20th, 2022 at 3:34pm
Print Post  
I have converted my .ino file into a .cpp.  It compiles fine but I get warnings that it cannot find setup() or loop() methods.  This error was not present when it was an .ino file.  There is a prototype for both in the relevant header file.  The code uploads and works properly, but of course there is no debug output.  Suggestions would be welcome. Exclaim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find Start() & loop() methods
Reply #1 - May 20th, 2022 at 4:04pm
Print Post  
The serial debugge will only work with setup and look in .ino code.
  
Back to top
WWW  
IP Logged
 
BlueCat
Junior Member
**
Offline


Posts: 14
Joined: Apr 27th, 2018
Re: Can't find Start() & loop() methods
Reply #2 - May 20th, 2022 at 5:07pm
Print Post  
I watched your video on converting .ino .cpp and nothing was mentioned about the debugger problem.  This little conversion of the blink sketch demonstrates it well. 
Marc
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint