VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> Linker Error when using Redboard Artemis
https://www.visualmicro.com/forums/YaBB.pl?num=1603228152

Message started by Gusto on Oct 20th, 2020 at 9:09pm

Title: Linker Error when using Redboard Artemis
Post by Gusto on Oct 20th, 2020 at 9:09pm
Attempting to compile new (i.e. blank) project for RedBoard Artemis using Visual Micro on Visual Studio (VS) 2019. Project compiles just fine using Arduino IDE. But, in VS, I get errors:

Error linking for board RedBoard Artemis
CommonAnalog.cpp:163: multiple definition of indexTone(unsigned char, unsigned int, unsigned long); C \Users\klsor\AppData\Local\Temp\VMBuilds\myArduinoProj\SparkFun_sfe_artemis\Release\core.a(CommonAnalog.cpp.o) C \Users\klsor\AppData\Local\arduino15\packages\SparkFun\hardware\apollo3\2.0.2\cores\arduino\sdk\core-implement\CommonAnalog.cpp  first defined here


Any help is appreciated!

Title: Re: Linker Error when using Redboard Artemis
Post by Simon@Visual Micro on Oct 20th, 2020 at 9:29pm
Thanks for the report.

So we can replicate reliably, please also attach the full build output, with the Verbose and Show Build Properties options enabled? (detailed at the top of this page, in the light yellow box)

Can you also confirm where you obtained the board package from (JSON URL) if possible?

Title: Re: Linker Error when using Redboard Artemis
Post by Gusto on Oct 20th, 2020 at 10:58pm
Thanks for the Reply. Build output txt file attached.

Regarding the JSON file: In the preferences of the Arduino IDE, I pasted this URL:

https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json

After that, I was able to compile code for the Redboard Artemis using the Arduino IDE. Subsequently, I was also able to select the Redboard Artemus using Visual Micro in VS. However, when I compile in VS, I get the attached errors.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Build_Output_009.txt ( 43 KB | 6 Downloads )

Title: Re: Linker Error when using Redboard Artemis
Post by Simon@Visual Micro on Oct 27th, 2020 at 5:16pm
Thanks for the detailed information surrounding this.

We have released a new version to the forum board below (20.09.10.12), which should now resolve this build error:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

We have also suggested additional flags are added to the patterns for this board to improve the caching:
vMicro Documentation: Arduino Compiler Dependencies Caching
Report on GitHub

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