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 Things work differently with includes on different PCs. (Read 2251 times)
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 38
Joined: Sep 19th, 2018
Things work differently with includes on different PCs.
Oct 9th, 2018 at 9:54am
Print Post  
Hi,

I’ve got tried vMicro on two computers. And things work differently with includes.

The project has `deb_sets.h` header which holds application level settings for debug messages.
The project has also few shared projects, which include `deb_sets.h`:
#include "deb_sets.h"

On PC#1 things work perfectly: compiler sees main project’s `deb_sets.h` when compiles shared projects.
However, on PC#2 I’ve got error: fatal error: deb_sets.h: No such file or directory.

As a workaround, I created another shared project where I put 
`deb_sets.h` into.

Why thing works differently?
« Last Edit: Oct 9th, 2018 at 2:06pm by Evgeny Zhekaus »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Things work differently with includes on different PCs.
Reply #1 - Oct 9th, 2018 at 1:36pm
Print Post  
Did you remember to add a reference from the arduino project to the shared project(s) on the pc that is failing?
  
Back to top
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 38
Joined: Sep 19th, 2018
Re: Things work differently with includes on different PCs.
Reply #2 - Oct 9th, 2018 at 2:05pm
Print Post  
Tim@Visual Micro wrote on Oct 9th, 2018 at 1:36pm:
Did you remember to add a reference from the arduino project to the shared project(s) on the pc that is failing?


Yes, of course. If I didn't, shared projects would be ignored by compiler.
And I open the same project on two computers with the same software version installed.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Things work differently with includes on different PCs.
Reply #3 - Oct 9th, 2018 at 2:09pm
Print Post  
If you switch on vMicro>Compiler>Verbose and "Show build properties" you can see everything after a build and you can see the build folder. 


+ It's possible that the .h file has been moved but old version exists in the build folder. Try Build>Clean on the machine that works to see if it breaks.
« Last Edit: Oct 9th, 2018 at 2:10pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline


Posts: 38
Joined: Sep 19th, 2018
Re: Things work differently with includes on different PCs.
Reply #4 - Oct 9th, 2018 at 3:24pm
Print Post  
Tim@Visual Micro wrote on Oct 9th, 2018 at 2:09pm:
you can see everything after a build and you can see the build folder


I can see only one `deb_sets.h`, in the root folder.


Tim@Visual Micro wrote on Oct 9th, 2018 at 2:09pm:
Try Build>Clean


I tried. I even manually cleaned the folder on the machine that works.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Things work differently with includes on different PCs.
Reply #5 - Oct 9th, 2018 at 4:18pm
Print Post  
The software always works the same. Please zip and email your solution with projects so I can look at the config 

Maybe your second pc has a shared library project instead of normal shared project by mistake

Thanks

ps: the few times users have reported this type of confusion between machines there has always been a difference in their code.
« Last Edit: Oct 9th, 2018 at 4:23pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint