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 not added to project when using .cpp and .h (Read 1135 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Header file not added to project when using .cpp and .h
Dec 24th, 2018 at 7:51am
Print Post  
Using a project where the sketch is in an .ino file, adding a library automatically adds the header file to the project .ino file as it should.

However, if the .ino file is empty or just contains comments (the case when using .h and .cpp files with setup and loop in the .cpp file) then the header files do not get added.

Acuario
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Header file not added to project when using .cpp and .h
Reply #1 - Dec 24th, 2018 at 12:49pm
Print Post  
Try adding some dummy code to the .ino so that it can establish where to put the headers

Code
Select All
int dummy = 0; 



Obviously the headers will be ignored because you are not using the .ino but maybe it will be useful for information/guidance as to header names?
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint