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 cannot open source file "abc.h" (Read 3787 times)
chrisvisualstudio
Newbies
*
Offline


Posts: 2
Joined: Jun 5th, 2017
cannot open source file "abc.h"
Jun 5th, 2017 at 5:58am
Print Post  
Hi,

I have used Visual Studio 2017 and Visual Micro to load one successful project to an Adafruit M0 feather.  All good.  I tried another one, in a similar subfolder, naming convention, similar function, and intellisense shows errors says 
cannot open source file "SPI.h"
cannot open source file "SD.h"  etc

I know the include file locations are setup right because I can switch back and forth with a program with the same includes and it finds them all.  I cannot build as the options are greyed out.  I have saved, closed, created a new arduino project and pasted the code into there, no success.  Can you please tell me what I am doing wrong.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: cannot open source file "abc.h"
Reply #1 - Jun 5th, 2017 at 12:52pm
Print Post  
If you can build then you have not followed the name rules. It is best to use the Visual Micro options to create new projects so the rules are automatically applied. 

The rules are ...

These 3 items must all have the same name ...

Project Dir
Project Name
An .ino Name

Thanks




info

Normally when you make reports it's important to explain which Arduino Ide you are using and which hardware. Also important to post the error(s) you see and to avoid giving a bare overview with missing information.

The vMicro>Compiler>verbose and also "show build properties" options are there for diagnostics. Please enable them, click build and then post the output as a .txt file. This will show us what you have configured.
« Last Edit: Jun 5th, 2017 at 12:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
chrisvisualstudio
Newbies
*
Offline


Posts: 2
Joined: Jun 5th, 2017
Re: cannot open source file "abc.h"
Reply #2 - Jun 6th, 2017 at 12:22am
Print Post  
Great, this worked.  Thank you for pointing me in the right direction
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint