bazelbuild/bazel

How to build a windows dll library?

Open

#14.380 aperta il 5 dic 2021

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Java (4465 fork)batch import
P3area-Windowshelp wantedteam-Documentationteam-Rules-CPPtype: documentation (cleanup)

Metriche repository

Star
 (25.384 star)
Metriche merge PR
 (Merge medio 22g 20h) (77 PR mergiate in 30 g)

Descrizione

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

Guida contributor