# The generated C++ code contains errors. Fatal error: 'Wire.h' file not found

**URL:** https://forum.xod.io/t/the-generated-c-code-contains-errors-fatal-error-wire-h-file-not-found/6243
**Category:** Uncategorized
**Created:** [August 29, 2022, 7:13pm UTC](https://forum.xod.io/t/the-generated-c-code-contains-errors-fatal-error-wire-h-file-not-found/6243 "2022-08-29T19:13:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![davidwalker69](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@davidwalker69](https://forum.xod.io/u/davidwalker69)
#### Post date: [August 29, 2022, 7:13pm UTC](https://forum.xod.io/t/the-generated-c-code-contains-errors-fatal-error-wire-h-file-not-found/6243/1 "2022-08-29T19:13:47Z")

</div>

Good morning all,

I am trying to develop Stepper Program, based on English Charlies [you tube clip](https://www.youtube.com/watch?v=9zgymotxRe8&t=471s)

Attached is my version  
[Pan Stepper to Arduino.xodball](https://forum.xod.io/uploads/short-url/j4ylp7U21IgbSalnaZFjGcm5Pyc.xodball) (327.9 KB)

I have a C++ error for Fatal error Wire.h which comes up nearly straight away after selecting Simulate, see below.

Other information I have is:

\*Simulate does not colour the node red to identify the incorrect node  
\*The Debugger starts but does not finish  
\*I get a red circle with a line through next to Deployment

_Does anyone know how to fix this?_

Thanks in advance  
David

/ws/sketchbook/bd7604d2a1469430d67b0bafcc9f5d713dcd9837aee72048a84b5ea26a8e84fb/sketch/sketch.ino:982: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-9E84595BF5F9208EF4448DC4101AC35C/sketch -I/ws/arduino\_data/packages/xod/hardware/wasm/0.3.2/cores/simulation -I/ws/arduino\_data/packages/xod/hardware/wasm/0.3.2/variants/simulation -DEMSCRIPTEN /tmp/arduino-sketch-9E84595BF5F9208EF4448DC4101AC35C/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)  
Error during build: exit status 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: ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)
#### Post date: [August 29, 2022, 8:41pm UTC](https://forum.xod.io/t/the-generated-c-code-contains-errors-fatal-error-wire-h-file-not-found/6243/2 "2022-08-29T20:41:20Z")

</div>

Hi David,

Unfortunately it is not possible to simulate hardware devices. See:

> [@Simulation error - please help](https://forum.xod.io/t/simulation-error-please-help/3911/4):
>
> 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: ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)
#### Post date: [September 28, 2022, 8:42pm UTC](https://forum.xod.io/t/the-generated-c-code-contains-errors-fatal-error-wire-h-file-not-found/6243/3 "2022-09-28T20:42:06Z")

</div>

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