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 Re: A lot of errors 'was not declared in this scope' (Read 1242 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: A lot of errors 'was not declared in this scope'
Sep 9th, 2019 at 9:35am
Print Post  
Ensure the include paths for your header files includes the relative path, like below:

#include "src/Wlcd/Wlcd.h"
#include "src/Wstepper/Wstepper.h"

This should resolve the initial errors, and this also detailed on the below page:
https://www.visualmicro.com/page/Understanding-Project-File-Structure.aspx
  
Back to top
IP Logged
 
Vosreinard
Newbies
*
Offline


Posts: 3
Joined: Sep 3rd, 2019
Re: A lot of errors 'was not declared in this scope'
Reply #1 - Sep 9th, 2019 at 12:24pm
Print Post  
Dear Simon,
Thanks for your reply. Helas Embarrassed, when applying #include "src/Wcld/Wcld.h" instead of #include "Wlcd.h" the program will be thrown back to the situation I had before I posted my previous question "Source file cannot find header file" with answer from Tom Leek. https://www.visualmicro.com/forums/YaBB.pl?num=1567802164/1#1 .
The problem is as follows: EEPROM.h can be found but not the underlaying functions, etcetera.
again: What can be done to resolve those problems?
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: A lot of errors 'was not declared in this scope'
Reply #2 - Sep 9th, 2019 at 12:44pm
Print Post  
If you click the little icon "show all files" above the solution explorer you can see physical files on disk. Then you will see that you have not included the src sources codes in your project.

Right click them and click "Include in project", then the red warning indicator will be removed.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Re: A lot of errors 'was not declared in this scope'
Reply #3 - Jul 1st, 2020 at 11:14am
Print Post  
This Topic was moved here from Installation & Troubleshooting [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint