Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Source file cannot find header file (Read 98 times)
Vosreinard
Newbies
*
Offline



Posts: 6
Source file cannot find header file
Sep 6th, 2019 at 9:36pm
 
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.
Back to top
 

RotaryTable.zip (2867 KB | 2 )
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Source file cannot find header file
Reply #1 - Sep 7th, 2019 at 5:09pm
 
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: 6
Re: Source file cannot find header file
Reply #2 - Sep 8th, 2019 at 9:41pm
 
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 Topic Print