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 error visualmicro not in arduino IDE 18.0 (Read 2810 times)
BeagleBot
Junior Member
**
Offline


Posts: 30
Location: Netherlands
Joined: Jul 8th, 2015
error visualmicro not in arduino IDE 18.0
Jan 18th, 2017 at 6:51pm
Print Post  
when I compile my code I have this error:
skylab_clock.ino: 51:30: error: 'adjustTime' was not declared in this scope
   adjustTime( fix.dateTime )

but not in Arduino IDE.
is Arduino 18.0 not compatible with the last version of visualmicro 170116 ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12208
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error visualmicro not in arduino IDE 18.0
Reply #1 - Jan 18th, 2017 at 8:36pm
Print Post  
Hi

If you are using a type that is defined in .ino code as arguments to a method you need to manually add a prototype in the correct location. 

Historically for arduino, types have been defined in header files because it wasn't possible for the ide to automatically add the prootype in a location between the definition of the type and the method that used it in its signature.

A change last year in the arduino ide added more intelligence but its a complicated change for visual micro due to the needs of the injected debugger code.

It will be implemented shortly so for now add the prototype yourself

//type defined here
struct mytype

//method prototype here (between the two with exact same signature
void mymethod(mytype arg1);


//method here
void mymethod(mytype arg1)
{
}

If this is not the problem then please email your .ino file(s)
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12208
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error visualmicro not in arduino IDE 18.0
Reply #2 - Jan 20th, 2017 at 9:11pm
Print Post  
How did you get on with this?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint