# Simulation error - please help

**URL:** <https://forum.xod.io/t/simulation-error-please-help/3911>\
**Category:** XOD Programming Questions\
**Created:** [May 6, 2020, 8:24am UTC](https://forum.xod.io/t/simulation-error-please-help/3911 "2020-05-06T08:24:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertf](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bertf](https://forum.xod.io/u/bertf)\
**Post date:** [May 6, 2020, 8:24am UTC](https://forum.xod.io/t/simulation-error-please-help/3911/1 "2020-05-06T08:24:17Z")

</div>

Good morning.

I am playing around with idea. I have connected a dht-2x hygrometer to a text-lcd-i2c-16x2. but when i want to simulate i get the following error :Generating C++ code for simulation…  
Building…  
/ws/sketchbook/df0364885ad56d00ee6a68283926579e066762ef3243dd8705c9410ce78752f0/sketch/sketch.ino:978:10: fatal error: ‘Wire.h’ file not found  
#include \<Wire.h\>  
^ ~~~~~~~  
1 error generated.  
shared:ERROR: ‘/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/bin/clang++ -target wasm32-unknown-emscripten -D\_\_EMSCRIPTEN\_major\_\_=1 -D\_\_EMSCRIPTEN\_minor\_\_=39 -D\_\_EMSCRIPTEN\_tiny\_\_=1 -D\_LIBCPP\_ABI\_VERSION=2 -Dunix -D\_\_unix -D\_\_unix\_\_ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/libcxx -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib/libcxxabi/include -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/compat -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/libc -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/local/include -DLLVM\_ROOT=/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/bin -DARDUINO\_WASM\_SIMULATION -DARDUINO\_ARCH\_WASM -O2 -std=c++11 -nostdlib -fno-exceptions -fno-rtti -c -I/tmp/arduino-sketch-2B7B3AE2A5CF0795210F1E940615B7CC/sketch -I/ws/arduino\_data/packages/xod/hardware/wasm/0.2.0/cores/simulation -I/ws/arduino\_data/packages/xod/hardware/wasm/0.2.0/variants/simulation -DEMSCRIPTEN /tmp/arduino-sketch-2B7B3AE2A5CF0795210F1E940615B7CC/sketch/sketch.ino.cpp -Xclang -isystem/ws/arduino\_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/SDL -c -o /dev/null -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr’ failed (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.

I dont have arduino connected. Can anyone help me with this?Do I need to have arduino connected? Still waiting for my board and other components

Tia

---

<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:** [May 6, 2020, 8:39am UTC](https://forum.xod.io/t/simulation-error-please-help/3911/2 "2020-05-06T08:39:56Z")

</div>

hello, I can’t simulate patches that contain libraries like wire.h and others.

You can only simulate patches with xod nodes are library dependent.

It is a very common mistake and it creeps with each new user.

Debug and upload by selecting the board to simulate onboard.

---

<div class="post-metadata">

**Author:** ![bertf](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bertf](https://forum.xod.io/u/bertf)\
**Post date:** [May 6, 2020, 8:57am UTC](https://forum.xod.io/t/simulation-error-please-help/3911/3 "2020-05-06T08:57:38Z")

</div>

> [@cesars](#):
>
> Debug and upload by selecting the board to simulate onboard.

How do I do that? I cant find the setting to simulate on board

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [May 6, 2020, 12:46pm UTC](https://forum.xod.io/t/simulation-error-please-help/3911/4 "2020-05-06T12:46:01Z")

</div>

You can’t simulate extra hardware like buttons, LCD, LED, or sensors. These need replaced with tweak or watch nodes or run on actual hardware. You can use debug when running on hardware to combine tweak/watch nodes with extra hardware.

---

<div class="post-metadata">

**Author:** ![bertf](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bertf](https://forum.xod.io/u/bertf)\
**Post date:** [May 6, 2020, 2:19pm UTC](https://forum.xod.io/t/simulation-error-please-help/3911/5 "2020-05-06T14:19:14Z")

</div>

makes sense. Thank you

---

<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:** [June 5, 2020, 2:19pm UTC](https://forum.xod.io/t/simulation-error-please-help/3911/6 "2020-06-05T14:19:24Z")

</div>

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