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 #include relative path compilation error #include "../ (Read 2300 times)
Eric Racineux
Newbies
*
Offline


Posts: 1
Joined: Aug 22nd, 2017
#include relative path compilation error #include "../
Aug 22nd, 2017 at 2:07pm
Print Post  
Hi,
In my project the .ino file is here: C:\Users\ericr\OneDrive\BubbleIo\Dev\Tests\ESP32_Version
I have an additional local library file util.h and .cpp file here : C:\Users\ericr\OneDrive\BubbleIo\Dev\Tests\Common

So in myproject.ino file I can include absolute path like this: #include "C:\Users\ericr\OneDrive\BubbleIo\Dev\Tests\Common\Util.h" 
intellisense and compile is OK

If I do the include like this (relative path more convenient) : #include "../Common/Util.h"
=> Intellisense is ok like the VS2017 feature "open the document" but the compilation is in error and says :
ESP32_Version.ino: 7:28: fatal error: ../Common/Util.h: No such file or directory compilation terminated Build failed for project 'ESP32_Version'  Cheesy Cheesy

I don't understand why and you ??

Thank for the help
« Last Edit: Aug 22nd, 2017 at 2:23pm by Eric Racineux »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint