Skip to content

Missing/hard to find instructions on how to work with external DLLs. #3205

Closed

Description

@pbos

I can't find instructions on how to work with external binary distributions (pre-built SDKs/binary DLLs). This is a very common usecase especially on Windows, so it should possibly be mentioned inside https://bazel.build/versions/master/docs/windows.html.

I made a //third_party/foo cc_library for that pre-built library and set hdrs = glob("foo/*.h") and srcs = ["foo/lib/foo.lib"], which "made it work" (compile), no idea if it's correct. In runtime it now complains that it can't find the dlls, but this doesn't seem to work if I set --output_user_root (nor was it probably the right place to begin with).

I tried putting the dlls in the data section of //third_party/foo, but that doesn't seem to change anything (still not found by project.exe, which depends on //third_party/foo) when running the binary from command-line. When doing bazel run I get ERROR: process-wrapper is not yet implemented on Windows..

Activity

  1. added
    P3
    on Jun 26, 2017
  2. added
    team-Rules-CPP
    and removed on Oct 11, 2018
  3. laszlocsomor commented on Mar 12, 2019

    @laszlocsomor
    Contributor

    @meteorcloudy recently updated the Windows example to show DLL usage. Does that help?

  4. pbos commented on Mar 12, 2019

    @pbos
    Author

    It does help, but it would also be nice if the Windows doc above linked to it. Searching for the text string "dll" on the Windows page yields nothing.

  5. oquenchil commented on May 15, 2020

    @oquenchil
    Contributor

    Closing issue since it was documented by @meteorcloudy in Windows example to show DLL usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3platform: windowsteam-Rules-CPPtype: documentation (cleanup)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions