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 does not name type (Read 1851 times)
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
does not name type
May 18th, 2020 at 8:36pm
Print Post  
Getting erro in VM not getting the error when compiling under arduino 

error: 'MQTTClient' does not name a type
   MQTTClient tclient = MQTTClient(5000)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: does not name type
Reply #1 - May 18th, 2020 at 8:44pm
Print Post  
Please follow the guide in yellow above.
  
Back to top
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: does not name type
Reply #2 - May 18th, 2020 at 8:56pm
Print Post  
verbos attched
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: does not name type
Reply #3 - May 18th, 2020 at 9:18pm
Print Post  
I added it as shared reference project now works.

The issue for me is this has been working without doing this for months now out of know where I now need to add this.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: does not name type
Reply #4 - May 18th, 2020 at 9:44pm
Print Post  
Thanks, we always need the output. It shows which board, toolchain version and what libraries have been found.

If same works in shared library it points to the possibility that the #include for a library was missing but has been added in the shared version. There should be no difference between shared code and project code.

If you can zip and email your code that fails we can look at it just so we all know what the problem was.

Thanks
« Last Edit: May 18th, 2020 at 9:47pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
JamesFarmer
Junior Member
**
Offline


Posts: 58
Joined: Mar 1st, 2020
Re: does not name type
Reply #5 - May 19th, 2020 at 12:13pm
Print Post  
The Include was not changed and the same program compiled the day before. 

it also compiled fin directly in the Arduino IDE. 

all I did was add it as shared project 

sorry but do to parts of the code under patent review I can not share
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: does not name type
Reply #6 - May 20th, 2020 at 11:23pm
Print Post  
Are you using exactly the same project to compile in the arduino ide. You haven't updated visual micro since before it has stopped working so the issue has to be an included code file in the visual studio solution that arduino does not see.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: does not name type
Reply #7 - May 20th, 2020 at 11:24pm
Print Post  
Are you using exactly the same project to compile in the arduino ide. You haven't updated visual micro since before it has stopped working so the issue has to be an included code file in the visual studio solution that arduino does not see.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint