Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Other >> Other Hardware >> Forcing rebuild
https://www.visualmicro.com/forums/YaBB.pl?num=1370180989

Message started by andrewf on Jun 2nd, 2013 at 2:49pm

Title: Forcing rebuild
Post by andrewf on Jun 2nd, 2013 at 2:49pm
I downloaded the latest AC3.0 code (RC4) and couldn't get it to build in VS2012 using VisualMicro 1.1305.09. Errors were:
   AP_Baro.cpp.o : : In Function 'AP_ParamT<float, (ap_var_type)4::set_and_save(float ...
   AP_Param.h : save()'
   AP_Param.h : save()'
   AC_Fence.cpp.o : : In Function 'AP_ParamT<float, (ap_var_type)4::set_and_save(float ...
   AP_Param.h : save()'
   AP_Param.h : save()'   
   Error creating .elf


I ended up resolving this by opening then saving the AP_Baro.h and AC_Fence.h files and then the build worked fine. I figure I forced it to see a change that needed a library to be rebuilt. Does this make sense as an explanation? Is there any way I can force a complete re-build just to make sure I have captured any changes? I am concerned that there may have been other code changes that did not result in build errors, but which I am missing.

Thank you,
Andrew

Title: Re: Forcing rebuild
Post by Visual Micro on Jun 2nd, 2013 at 3:20pm
Project menu build clean should work. I'll look into why the changes were not auto detected

Title: Re: Forcing rebuild
Post by andrewf on Jun 2nd, 2013 at 3:48pm
Thank you Tim.

I should have mentioned that I didn't start from a fresh project.  I merged the latest commits from the git repository and tried to rebuild. 

Andrew

Title: Re: Forcing rebuild
Post by Visual Micro on Jun 2nd, 2013 at 3:52pm
Okay I see that is a bit off the wall and maybe the build>clean is the best solution for you.

Thanks

Title: Re: Forcing rebuild
Post by andrewf on Jun 2nd, 2013 at 4:28pm
No big deal for me to do the clean build if that is what is needed.  If I have similar problems later on I will start with that.

Thanks again,
Andrew

Title: Re: Forcing rebuild
Post by Visual Micro on Jun 2nd, 2013 at 5:46pm
Thanks and well spotted!

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.