HDFGroup / HDFGroup/hdf5

build(win,msvc): `/guard:cf` and `/DYNAMICBASE` options do not work

Open
#6,118 4 comments 0 reactions 1 assignee Claimed by @glennsong09 View on GitHub
Component - Build HDFG-internal
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

Use these options on Windows:

```
-DCMAKE_C_FLAGS="/guard:cf" -DCMAKE_CXX_FLAGS="/guard:cf" -DCMAKE_EXE_LINKER_FLAGS="/DYNAMICBASE" -DCMAKE_SHARED_LINKER_FLAGS="/DYNAMICBASE"
```

The following build errors occur:

```
D:\a\actions\actions\test\atomic_reader.c(37,1): error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\a\actions\actions\build\test\atomic_reader.vcxproj]
```

```
D:\a\actions\actions\test\atomic_writer.c(40,1): error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\a\actions\actions\build\test\atomic_writer.vcxproj]
```

Ref: https://my.cdash.org/viewBuildError.php?buildid=3260322

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.