HDFGroup / HDFGroup/hdf5

Can't Compile CPP with Static Only Options

Open
#5,984 4 comments 0 reactions 1 assignee Assigned to @lrknox View on GitHub
Component - Build
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

These combinations fail to compile on Ubuntu 22, 24 both x86_64 and arm64.

```
cmake -G Ninja \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DBUILD_STATIC_LIBS:BOOL=ON \
-DHDF5_ONLY_SHARED_LIBS:BOOL=OFF \
-DHDF5_BUILD_STATIC_TOOLS:BOOL=ON \
-DBUILD_STATIC_EXECS:BOOL=ON \
-DHDF5_BUILD_CPP_LIB:BOOL=ON \
-DHDF5_BUILD_FORTRAN:BOOL=ON \
```

Ubu-24: 15 compiler errors
Ubu-22: 12 compiler errors
Ubu-24-arm: 9 compiler errors

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.