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
Hot Topic (More than 8 Replies) The code compiled. Does not compile anymore. (Visual Studio 2015) (Read 2882 times)
deangelo
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2016
The code compiled. Does not compile anymore. (Visual Studio 2015)
May 31st, 2018 at 8:32pm
Print Post  
Hello everyone.

Today I opened a code that was already running for about 4 days and it does not compile anymore.

If I put #include "DHT.h"
I get the message: error: 'DHT' does not name a type
    DHT dht_1 (DHTPIN_1, DHTTYPE_1)

If I put #include "DHTxx\DHT.h"
I get the message: fatal error: DHTxx\DHT.h: No such file or directory

If I put the full path #include "C:\Users\master\Documents\Arduino\libraries\DHTxx\DHT.h"
I get the message: Error linking for board Arduino / Genuine Mega w / ATmega2560 (Mega 2560)
Build failed for project 'Project ...'

What is wrong?

Angry Angry Angry Angry Angry Angry
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #1 - May 31st, 2018 at 8:41pm
Print Post  
Hi,

Maybe you altered the Sketchbook folder location in Visual Micro IDE Locations or in ArduinoIDE>File>Preferences?

The User Installed Arduino libraries are installed into SketchBook/Libraries folder.

Normally the sketchBook is "myDocuments\Arduino"

So if you change the sketchbook location then also copy the Libraries sub folder to the new location.

Does this make sense?


  
Back to top
WWW  
IP Logged
 
deangelo
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2016
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #2 - May 31st, 2018 at 8:47pm
Print Post  
Do not.
The project was created and I have not changed anything since.
I just updated visualMicro and windows 10.

The project is in C: \ Users \ Master \ Documents \ Arduino \ Project ...
The libraries are in C: \ Users \ Master \ Documents \ Arduino \ libraries
  
Back to top
 
IP Logged
 
deangelo
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2016
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #3 - May 31st, 2018 at 8:49pm
Print Post  
The IDE provides the options to select as I type the library name, but I get the errors mentioned when compiling.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #4 - May 31st, 2018 at 8:51pm
Print Post  
Thanks for the info.

Please switch on vmicro>compiler>verbose and also "show build properties"

Then build and post the output as a .txt file or email to info[at]visualmicro.com with link to this post

Thanks

« Last Edit: May 31st, 2018 at 8:53pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #5 - May 31st, 2018 at 8:57pm
Print Post  
One more question

If you switch off "vmicro>compiler>deep search libraries" does it build?
  
Back to top
WWW  
IP Logged
 
deangelo
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2016
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #6 - May 31st, 2018 at 9:04pm
Print Post  
Is attached.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
deangelo
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2016
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #7 - May 31st, 2018 at 9:06pm
Print Post  
When I turned off deep search it gave error in other libraries.

For example, the wire.h library called by sdfat.h has not been identified.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #8 - May 31st, 2018 at 9:24pm
Print Post  
Thanks

If you download the latest release from 1806.1.3 from the new releases section I think this is fixed

  
Back to top
WWW  
IP Logged
 
deangelo
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2016
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #9 - May 31st, 2018 at 9:35pm
Print Post  
You're right.

This update fixes the problem.
She still had not appeared here in visual studio.
I believed that there was no further update after 1806.1

Thanks a lot for the help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #10 - May 31st, 2018 at 9:36pm
Print Post  
don't forget to switch deep search back or add #includes for wire.h  and sdfat.h to the .ino code
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The code compiled. Does not compile anymore. (Visual Studio 2015)
Reply #11 - May 31st, 2018 at 9:45pm
Print Post  
Thanks for the update. I only just made that fix after your report. It will go in the gallery over the next few days. Otherwise people get annoyed with too many updates  Smiley
« Last Edit: Jun 2nd, 2018 at 1:44am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint