# Can't Compile/upload since V 0.35.0

**URL:** https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428
**Category:** XOD Programming Questions
**Created:** [September 15, 2020, 10:27am UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428 "2020-09-15T10:27:50Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![looser](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@looser](https://forum.xod.io/u/looser)
#### Post date: [September 15, 2020, 10:27am UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/1 "2020-09-15T10:27:50Z")

</div>

Help,

The attached bit of code will compile and run with V 0.34.0  
but will not compile under V035.0.  
I have uploaded other bits of code under V0.35.0 no probs, but not this bit of code.  
Board type Freetronics EtherMega ( Aust )  
I am running windows 10 and all the XOD dependencies are up to date.

looser. 😞

[Clock Series-Time-.xodball](https://forum.xod.io/uploads/short-url/qCs6WK4I6oZj8C7HtmmpAiJNRH6.xodball) (32.9 KB)

Begin compiling code for the board Arduino Mega or Mega 2560 📦

C:\Users\denis\AppData\Local\Temp\xod\_temp\_sketchbook20EI12\xod\_1600164137954\_sketch\xod\_1600164137954\_sketch.ino: In member function ‘void xod::xod\_\_common\_hardware\_\_ds18b20\_thermometer::Node\<constant\_input\_PORT\>::evaluate(xod::xod\_\_common\_hardware\_\_ds18b20\_thermometer::Node\<constant\_input\_PORT\>::Context)’:  
C:\Users\denis\AppData\Local\Temp\xod\_temp\_sketchbook20EI12\xod\_1600164137954\_sketch\xod\_1600164137954\_sketch.ino:2843:40: error: ‘port’ was not declared in this scope  
bool success = readTemperature(port, &tc);  
^~~~

C:\Users\denis\AppData\Local\Temp\xod\_temp\_sketchbook20EI12\xod\_1600164137954\_sketch\xod\_1600164137954\_sketch.ino:2843:40: note: suggested alternative: ‘Uart’  
bool success = readTemperature(port, &tc);  
^~~~  
Uart

Error during build: exit status 1  
Compilation failed  
Command Process exited with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

---

<div class="post-metadata">

### Author: ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)
#### Post date: [September 15, 2020, 11:25am UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/2 "2020-09-15T11:25:16Z")

</div>

Hi!

We just released XOD v0.35.1 that fixes this bug among other things. Please update and all should work fine!

---

<div class="post-metadata">

### Author: ![looser](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@looser](https://forum.xod.io/u/looser)
#### Post date: [September 16, 2020, 11:28am UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/3 "2020-09-16T11:28:49Z")

</div>

Hello evgenykochetkoprov,

Thank you for your quick reply.  
The code now compiles and uploads no errors with the message “Uploaded Successfully” but the code doesn’t run.  
I can reinstall 0.34.0 upload the program and it works fine.

looser 😞

---

<div class="post-metadata">

### Author: ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)
#### Post date: [September 18, 2020, 1:22pm UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/4 "2020-09-18T13:22:51Z")

</div>

Thanks for the report and sorry for the late response.  
That was indeed a bug with `tweak-string`s, it’s fixed now and released in v0.35.2

---

<div class="post-metadata">

### Author: ![looser](https://avatars.discourse-cdn.com/v4/letter/l/e95f7d/32.png) [@looser](https://forum.xod.io/u/looser)
#### Post date: [September 19, 2020, 10:43am UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/5 "2020-09-19T10:43:06Z")

</div>

Hello evgenykochetkov,  
Thanks very much for your help.

Downloaded 0.35.2 the sketch now compiles and runs no problems.

looser. 🙂

---

<div class="post-metadata">

### Author: ![seralex](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/seralex/32/1937_2.png) [@seralex](https://forum.xod.io/u/seralex)
#### Post date: [September 19, 2020, 1:41pm UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/6 "2020-09-19T13:41:47Z")

</div>

It looks like the problem still exists in version 0.35.2

Begin compiling code for the board Arduino Mega or Mega 2560 📦

C:\Users\15FC~1.-\AppData\Local\Temp\xod\_temp\_sketchbookP3TJLB\xod\_1600522652947\_sketch\xod\_1600522652947\_sketch.ino:4519:5: error: initializer for flexible array member ‘uint8\_t xod::txgruppi\_\_stepper\_28byj48\_\_stepper\_28byj48\_controller::Node::positions []’  
};  
^

Error during build: exit status 1  
Compilation failed  
Command Process exited with code 1  
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

My compilation error message.

---

<div class="post-metadata">

### Author: ![brusher](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher/32/475_2.png) [@brusher](https://forum.xod.io/u/brusher)
#### Post date: [September 21, 2020, 12:54pm UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/7 "2020-09-21T12:54:33Z")

</div>

@seralex thank you for this bug report. I confirm, that the bug introduced in the 0.35.0 version. However, we don’t plan to fix it until get more similar bug reports with the third-party libraries, because this fix is not so trivial. But there are some solutions:

1. Ask @txgruppi to publish a new version of the library after fixing the bug or [migrate the implementation](https://xod.io/docs/guide/migrating-to-v035/) to new version.  
To fix it you need just specify a size of array by replacing the line `uint8_t positions[] = {` with `uint8_t positions[8] = {`.
2. If there is no response from library creator you can make a fork of the library with the suggested fix and publish it. Or just copy used node, make a fix, and use it in your project only 🙂

---

<div class="post-metadata">

### Author: ![txgruppi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/txgruppi/32/693_2.png) [@txgruppi](https://forum.xod.io/u/txgruppi)
#### Post date: [September 22, 2020, 6:23am UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/8 "2020-09-22T06:23:26Z")

</div>

Hi everyone!

I just pushed version 0.0.3 with the fix proposed by @brusher.

Let me know if it works (please tag me so I get a notification).

😉

---

<div class="post-metadata">

### Author: ![seralex](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/seralex/32/1937_2.png) [@seralex](https://forum.xod.io/u/seralex)
#### Post date: [September 22, 2020, 3:24pm UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/9 "2020-09-22T15:24:47Z")

</div>

Where can I get version 0.0.3? I could not find.

---

<div class="post-metadata">

### Author: ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)
#### Post date: [September 22, 2020, 3:30pm UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/10 "2020-09-22T15:30:22Z")

</div>

Hi, download the library again.

as if it were the first time, from the library search engine.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [October 22, 2020, 3:30pm UTC](https://forum.xod.io/t/cant-compile-upload-since-v-0-35-0/4428/11 "2020-10-22T15:30:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
