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 Re: LIBRARY EXAMPLE COMPILATION ERROR (Read 3889 times)
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: LIBRARY EXAMPLE COMPILATION ERROR
Jan 7th, 2016 at 11:38am
Print Post  
I`ve got the same problem. 
And Tools->Visual Micro->Reload Toolchain does not help. 

For sometime I worked in Arduino IDE so I can`t recognize the moment when compilation in VS has broken. Thank to topic starter - I found out the reason of such behaviour is the following: 
In Visual Micro documentation its recommenned to move your source code from libabry to project folder if you would like to debug libabry. Arduino IDE has no problem with it. But in VS you get a problem. You need to add source files to your project, only after that it works under Visual Micro.
« Last Edit: Jan 7th, 2016 at 11:39am by Alexey V. Popov »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: LIBRARY EXAMPLE COMPILATION ERROR
Reply #1 - Jan 7th, 2016 at 12:47pm
Print Post  
Hi Alexey,

I moved you to a new thread because you make an interesting post but I don't fully understand it.

Can you please try to explain what files you are talking about in this:-

Quote:
You need to add source files to your project, only after that it works under Visual Micro


Can you also confirm the name of the library you are using? The #includes in your code?

Thanks
  
Back to top
WWW  
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: LIBRARY EXAMPLE COMPILATION ERROR
Reply #2 - Jan 10th, 2016 at 8:48pm
Print Post  
The source file from the library. For instance, I have a Library StepperClass. It consist of two files: StepperClass.cpp and StepperClass.h. Usually its placed in Arduino\Lababry\StepperClass\. As other libraries StepperClass included into my projects ino file by #include "" or <>
And these libraries are not inlcuded into the VS solution (VS project - no reference).
VS has no problem with it - it works.

But if I would like to debug it, according to your documentation, I need to move library source files to project folder, Arduino\MyProject. 
If I do it, Arduino IDE still has no problem with, just open it with ino sketch automatically. 
But VS completely lost it. You have to add it into VS solution and after that only it works.

Hope this description is slightly more clear Smiley
  
Back to top
 
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: LIBRARY EXAMPLE COMPILATION ERROR
Reply #3 - Jan 10th, 2016 at 9:16pm
Print Post  
Hmm.. 

Yesterday I had to inetrrupt developiong accedently. 
Today when I started I`ve got a message (attached). So I can`t build project. 
Rebuild - does not help. Clean and rebuild - does not help. Delete folder from the error message and rebuild - does help.
Arduino IDE - no problems, it works. 

And whats the reason? The same! 

Yesterday in the last moment I moved source file from project to library folder (Arduino\libraries\LibraryName\), but I have not remove references from MS VS solution (I was interrupted)! I forgot about it and today I spent about half an hour tring to find out WTF?! 

I think you should put this information somewhere in the documentation with bold style. Smiley And probably (if you can) make error message useful. 
« Last Edit: Jan 10th, 2016 at 9:18pm by Alexey V. Popov »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Alexey V. Popov
Junior Member
**
Offline


Posts: 25
Joined: Jan 6th, 2016
Re: LIBRARY EXAMPLE COMPILATION ERROR
Reply #4 - Jan 10th, 2016 at 9:17pm
Print Post  
Thanks to your question, only when I read it I guess what can be the reason Smiley
« Last Edit: Jan 10th, 2016 at 9:17pm by Alexey V. Popov »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: LIBRARY EXAMPLE COMPILATION ERROR
Reply #5 - Jan 10th, 2016 at 9:22pm
Print Post  
Thanks for all the info and I am sorry delayed response.

Yes this problem is fixed in the update that I hope will be released over the next 24/48 hours.

If source code is missing (shows with a small yellow exclamation ! ). Visual Micro shows a confusing error message when you try to build.

Thanks again
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint