Unknown type name 'uint32_t'

Not sure what's going on with this one. Do we have to do something new to see types from stdint when building c/c++ projects with Swift Package Manager in Swift 6?

Repro on Swift 6 compiler, swift-tools-version:5.5, Ubuntu 2404:

1 Like

I should add that the file in question: geos/Sources/geos/include/geos/shape/fractal/HilbertEncoder.h at f510e634c822116fca615064d889300dba40d761 · GEOSwift/geos · GitHub

does not include stdint, so maybe that's the problem, but I'm curious to understand why this problem wasn't occurring in older versions of swift.

You may have hit this LLVM compilation issue with newer compilers: Add missing include to X86MCTargetDesc.h (#123320) · swiftlang/llvm-project@7abf440 · GitHub

1 Like