How to build a windows dll library?
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
> ATTENTION! Please read and follow:
> - if this is a _question_ about how to build / test / query / deploy using Bazel, or a _discussion starter_, send it to bazel-discuss@googlegroups.com
> - if this is a _bug_ or _feature request_, fill the form below as best as you can.
### Description of the problem / feature request:
```
bazel build examples/windows/dll:hellolib
```
I try to build windows dll library examples/windows/dll:hellolib, but I can't find any hellolib.**lib**.
### What operating system are you running Bazel on?
win11, bazel 4.2.1 release
### What's the output of `bazel info release`?
release 4.2.1
### Any other information, logs, or outputs that you want to share?
```
(base) PS D:\Build\bazel> bazel clean
INFO: Starting clean.
(base) PS D:\Build\bazel> bazel build examples/windows/dll:hellolib
INFO: Analyzed target //examples/windows/dll:hellolib (21 packages loaded, 115 targets configured).
INFO: Found 1 target...
Target //examples/windows/dll:hellolib up-to-date (nothing to build)
INFO: Elapsed time: 1.169s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
```
Contributor guide
Research direction
Start by running bazel build examples/windows/dll:hellolib on Windows with Bazel 4.2.1 and inspect the target's reported outputs. Check whether the example is expected to produce a hellolib DLL or another artifact, then document or correct the example so a successful build has an identifiable output.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100