VS Arduino
Visual Micro >> Installation & Troubleshooting >> Added myClass.cpp is always compiled instead of using previous compiled one.
https://www.visualmicro.com/forums/YaBB.pl?num=1653916629

Message started by herman on May 30th, 2022 at 1:17pm

Title: Added myClass.cpp is always compiled instead of using previous compiled one.
Post by herman on May 30th, 2022 at 1:17pm
Actions to reproduce :

Create new project, compile -> see vmicro log
Add Myclass.cpp/Myclass.h to the project, compile, only MyClass.cpp is compiled -> see vmicro log
No change to any file, compile, MyClass.cpp is compiled again -> see vmicro log.

Do not know whether it is related but the compile command for the "ino" is "...." "C:\Userdata\VMicro\Projects\NewSP14\NewSP14\Debug\NewSP14.cpp" -o "C:\Userdata\VMicro\Projects\NewSP14\NewSP14\Debug\NewSP14.cpp.o"

And for the MyClass.cpp : "...." "C:\Userdata\VMicro\Projects\NewSP14\NewSP14\Debug\MyClass.cpp" -o "C:\Userdata\VMicro\Projects\NewSP14\NewSP14\Debug\\Debug\MyClass.cpp.o"

Notice the additional \Debug level in the path.

See attached zip for logfiles.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=CompilelLog.zip ( 25 KB | 1 Download )

Title: Re: Added myClass.cpp is always compiled instead of using previous compiled one.
Post by Simon@Visual Micro on May 30th, 2022 at 2:21pm
Thanks for the report.

Have you enabled the "Build In Project Intermediate" option, shown in vMicro > General > Global Options, beneath the compiler section?

If this is set back to False it will avoid the issue while we investigate further.

Title: Re: Added myClass.cpp is always compiled instead of using previous compiled one.
Post by herman on May 30th, 2022 at 3:09pm
Yes, I have "Build in project intermediate" switched on.
I keep in on for now, the mentioned issue does not effect my working ver much.

FYI : The project intermediate folder contains lots of debug levels after several compiles.

See attached picture,
ProjectDebugLevels.PNG ( 8 KB | 0 Downloads )

Title: Re: Added myClass.cpp is always compiled instead of using previous compiled one.
Post by Simon@Visual Micro on May 31st, 2022 at 4:24pm
The latest release (22.04.29-5) should resolve the issues with the CPP Build Caching, and the folder creations in the build folder when using the Build In Project Intermediate, and is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: Added myClass.cpp is always compiled instead of using previous compiled one.
Post by herman on Jun 1st, 2022 at 12:35pm
Confirmed working OK now.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.