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 Header file No such file or Directory error (Read 1014 times)
Nikolay
Newbies
*
Offline


Posts: 4
Joined: Nov 4th, 2018
Header file No such file or Directory error
Aug 27th, 2020 at 3:26am
Print Post  
Good day,
I added the library to the project from a zip file into folder  "C:\Program Files (x86)\Arduino\libraries\Seeed_Arduino_NFC"
and include header file
#include <PN532\PN532_I2C\PN532_I2C.h>

but when I compile project I get the error no such file or Directory (output is attached).
Please tell what is wrong and how to correct it.
« Last Edit: Aug 27th, 2020 at 12:05pm by Nikolay »  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Header file No such file or Directory error
Reply #1 - Aug 27th, 2020 at 4:22pm
Print Post  
For arduino libraries you rarely specify a path, normally not all all

Does this work?

#include <PN532_I2C.h>
  
Back to top
WWW  
IP Logged
 
Nikolay
Newbies
*
Offline


Posts: 4
Joined: Nov 4th, 2018
Re: Header file No such file or Directory error
Reply #2 - Aug 28th, 2020 at 12:19am
Print Post  
Library https://wiki.seeedstudio.com/Grove_NFC/
has a structure with nested folders. As it turned out, Arduino does not understand such a structure.
To solve the problem, I copied the content from the folders below to the src folder and corrected the links in the libraryes files in #include <> instruction.
Compilation went fine after that.
The question is closed, thank you all!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Header file No such file or Directory error
Reply #3 - Aug 28th, 2020 at 1:02am
Print Post  
Great, yes that is right and thanks for the update.
« Last Edit: Aug 28th, 2020 at 1:04am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint