You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use CXX to define some bindings against an external C++ library (that I manage via Nix). This builds perfectly well locally, and perfectly well in CI. All good.
Then, I write an integration test in the same crate as the C++ bridge is defined. Builds fine locally, but breaks on a very strange linker error in CI:
error: linking with `cc` failed: exit status: 1
and the main error appearing below of the form:
<...> undefined reference to <...>
where these are calls to the external library from my C++ code.
Disabling the test again (by commenting it out) makes the linking work again perfectly. Additionally, just moving the test to a different crate in the workspace makes it work perfectly - the test runs fine locally and in CI, and no linker issues appear.
Is this just a known issue, or is there some other thing I need to configure to make this work?
The text was updated successfully, but these errors were encountered:
Problem
I use CXX to define some bindings against an external C++ library (that I manage via Nix). This builds perfectly well locally, and perfectly well in CI. All good.
Then, I write an integration test in the same crate as the C++ bridge is defined. Builds fine locally, but breaks on a very strange linker error in CI:
and the main error appearing below of the form:
where these are calls to the external library from my C++ code.
build.rs
for interest:Workaround
Disabling the test again (by commenting it out) makes the linking work again perfectly. Additionally, just moving the test to a different crate in the workspace makes it work perfectly - the test runs fine locally and in CI, and no linker issues appear.
Is this just a known issue, or is there some other thing I need to configure to make this work?
The text was updated successfully, but these errors were encountered: