# Swift 5.7 docker image changes: missing cstddef include

**URL:** <https://forums.swift.org/t/swift-5-7-docker-image-changes-missing-cstddef-include/60676>\
**Category:** Using Swift\
**Tags:** packagemanager, docker, cxx\
**Created:** [October 5, 2022, 8:47pm UTC](https://forums.swift.org/t/swift-5-7-docker-image-changes-missing-cstddef-include/60676 "2022-10-05T20:47:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![willft](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/willft/32/412_2.png) [@willft](https://forums.swift.org/u/willft)\
**Post date:** [October 5, 2022, 8:47pm UTC](https://forums.swift.org/t/swift-5-7-docker-image-changes-missing-cstddef-include/60676/1 "2022-10-05T20:47:51Z")

</div>

Hi all,

We build a fairly complicated library using Docker. It contains C++ source code. It doesn't use the new, experimental C++ importer or anything — it just uses the same C++ support that SwiftPM has always had & exports its functionality through a C wrapper. It uses `cxxLanguageStandard: .cxx11` in the Package.swift.

We had been using the `swift:5.6` tag from dockerhub. When I upgrade us to the recently released `swift:5.7`, I get the following error in a C++ file:

```swift

/codebuild/output/[redacted file].cpp:17:10: fatal error: 'cstddef' file not found

#include <cstddef>

^ ~~~~~~~~

1 error generated.

error: fatalError

```

Is there anything that's changed in the 5.7 series of docker images which would cause cstddef to be unfindable, of all things? I always thought that wasn't even a real file on disk but something implemented by the compiler.

---

<div class="post-metadata">

**Author:** ![willft](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/willft/32/412_2.png) [@willft](https://forums.swift.org/u/willft)\
**Post date:** [November 14, 2022, 10:23pm UTC](https://forums.swift.org/t/swift-5-7-docker-image-changes-missing-cstddef-include/60676/2 "2022-11-14T22:23:45Z")

</div>

For future google searchers: I resolved this with an `apt-get install build-essential`. Just missing libstdc++ I think.
