# I use Drawings and Kernel archives (static configuration mddbg). The build succeeds, but when I run main.exe, I get the following output: ERROR: Null Ptr

 1. [FAQ](/ja/faq)
2. »
3.

### Pay attention to content of TOOLKIT\_IN\_DLL defines in each main .cpp of examples. There is an initialization of modules needed in static:

```

<span style="background:white"><span style="font-size:10pt"><span style="background:white"><span style="font-family:"Courier New""><code style="font-family:"Courier New""><span lang="EN-US" style="font-family:Consolas"><span style="color:#212529">#ifndef TOOLKIT_IN_DLL</span></span></code></span></span></span></span>
```

```

<span style="background:white"><span style="font-size:10pt"><span style="background:white"><span style="font-family:"Courier New""><code style="font-family:"Courier New""><span lang="EN-US" style="font-family:Consolas"><span style="color:#212529">INIT_IFC_STATIC_MODULES_NO_GEOM;</span></span></code></span></span></span></span>
```

```

<span style="background:white"><span style="font-size:10pt"><span style="background:white"><span style="font-family:"Courier New""><code style="font-family:"Courier New""><span lang="EN-US" style="font-family:Consolas"><span style="color:#212529">#endif</span></span></code></span></span></span></span>
```

and

```

<span style="background:white"><span style="font-size:10pt"><span style="background:white"><span style="font-family:"Courier New""><code style="font-family:"Courier New""><span lang="EN-US" style="font-family:Consolas"><span style="color:#212529">#ifndef TOOLKIT_IN_DLL</span></span></code></span></span></span></span>
```

```

<span style="background:white"><span style="font-size:10pt"><span style="background:white"><span style="font-family:"Courier New""><code style="font-family:"Courier New""><span lang="EN-US" style="font-family:Consolas"><span style="color:#212529">ODRX_INIT_STATIC_MODULE_MAP();</span></span></code></span></span></span></span>
```

```

<span style="background:white"><span style="font-size:10pt"><span style="background:white"><span style="font-family:"Courier New""><code style="font-family:"Courier New""><span lang="EN-US" style="font-family:Consolas"><span style="color:#212529">#endif</span></span></code></span></span></span></span>
```

So in md configuration each module should been previously initialized for our rt linker can work with them. Seems your problem related with this initialization.
