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 Source file cannot find header file (Read 1583 times)
Vosreinard
Newbies
*
Offline


Posts: 3
Joined: Sep 3rd, 2019
Source file cannot find header file
Sep 6th, 2019 at 8:36pm
Print Post  
New to VS2019 and C++, I try to compile an application found on internet. The use is to operate rotary indexers.

Problem here is that I thought to have incorporated Wstepper.cpp and Wstepper.h in the project. But during compiling Wstepper.cpp cannot locate  Wstepper.h.

Wstepper.cpp: 11:22: fatal error: Wstepper.h: No such file or directory
   compilation terminated



I would be grateful If someone could help me out.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Source file cannot find header file
Reply #1 - Sep 7th, 2019 at 4:09pm
Print Post  
Hi

Arduino projects allow for code in the project folder and in (or below) a folder called \src.

If you install your library into the standard arduino "documents\arduino\libraries" folder and remove it from below the project then you will have an arduino ide compatible solution. 

To include the lib in your code do not use any path reference, just #include <myLib.h>

note: If you want to then use a local copy of the library the "Add Library" menu provides workflows that do that for you.

When adding/moving a library using windows explorer click the "Rescan" option in visual micro or restart the IDE
  
Back to top
WWW  
IP Logged
 
Vosreinard
Newbies
*
Offline


Posts: 3
Joined: Sep 3rd, 2019
Re: Source file cannot find header file
Reply #2 - Sep 8th, 2019 at 8:41pm
Print Post  
Hi
Thanks for advice. Rebuilding my project does not complain anymore not to find header files.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint