# Reloading Tinker code onto Core

**URL:** <https://community.particle.io/t/reloading-tinker-code-onto-core/2998>\
**Category:** Firmware\
**Created:** [February 20, 2014, 8:59pm UTC](https://community.particle.io/t/reloading-tinker-code-onto-core/2998 "2014-02-20T20:59:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![efatsi](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/efatsi/32/20726_2.png) [@efatsi](https://community.particle.io/u/efatsi)\
**Post date:** [February 20, 2014, 8:59pm UTC](https://community.particle.io/t/reloading-tinker-code-onto-core/2998/1 "2014-02-20T20:59:18Z")

</div>

Having trouble reloading the original Tinker code onto my Core. Per the [Tinker documentation](http://docs.spark.io/#/start/tinkering-with-tinker-the-tinker-api), I’ve grabbed the code linked to at this url - [https://github.com/spark/core-firmware/blob/master/src/application.cpp](https://github.com/spark/core-firmware/blob/master/src/application.cpp).

Pasting that into the editor within the Build application however I’m getting the following error when trying to verify the code:

```auto
the_user_app.cpp:26:6: error: previous declaration of 'void setup()' with 'C++' linkage
In file included from ../inc/spark_wiring.h:31:0,
from ../inc/application.h:29,
from the_user_app.cpp:27:
../inc/spark_utilities.h:116:35: error: conflicts with new declaration with 'C' linkage
the_user_app.cpp:27:6: error: previous declaration of 'void loop()' with 'C++' linkage
In file included from ../inc/spark_wiring.h:31:0,
from ../inc/application.h:29,
from the_user_app.cpp:27:
../inc/spark_utilities.h:117:34: error: conflicts with new declaration with 'C' linkage
make: *** [the_user_app.o] Error 1

```

---

<div class="post-metadata">

**Author:** ![binaryfrost](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/binaryfrost/32/738_2.png) [@binaryfrost](https://community.particle.io/u/binaryfrost)\
**Post date:** [February 20, 2014, 9:08pm UTC](https://community.particle.io/t/reloading-tinker-code-onto-core/2998/2 "2014-02-20T21:08:08Z")

</div>

Try removing #include “application.h”

---

<div class="post-metadata">

**Author:** ![efatsi](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/efatsi/32/20726_2.png) [@efatsi](https://community.particle.io/u/efatsi)\
**Post date:** [February 20, 2014, 9:30pm UTC](https://community.particle.io/t/reloading-tinker-code-onto-core/2998/3 "2014-02-20T21:30:29Z")

</div>

Bingo.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![binaryfrost](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/binaryfrost/32/738_2.png) [@binaryfrost](https://community.particle.io/u/binaryfrost)\
**Post date:** [February 20, 2014, 9:34pm UTC](https://community.particle.io/t/reloading-tinker-code-onto-core/2998/4 "2014-02-20T21:34:47Z")

</div>

No problem.

I suspect the Web IDE adds this #include in automatically, so putting it in your code too confused things a little.

I’m surprised though, would have thought that the #ifndef would have taken care of that.

As the code for the Web IDE isn’t on github, that’s just a guess, but I’m pleased it worked.
