bazelbuild/bazel

How to build a windows dll library?

Open

#14.380 geöffnet am 5. Dez. 2021

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (4.465 Forks)batch import
P3area-Windowshelp wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

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