regression: linking using filename of .so library results in "unable to find library" from zig 0.14 #23287
Labels
bug
Observed behavior contradicts documented or intended behavior
regression
It worked in a previous version of Zig, but stopped working.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Zig Version
0.14.0
(This worked in 0.13.0)
Steps to Reproduce and Observed Behavior
Observed:
% make ./zig/zig-linux-x86_64-0.14.0/zig c++ -fPIC -shared -o mylib.so mylib.cpp ./zig/zig-linux-x86_64-0.14.0/zig c++ -o main main.cpp -L. -l :mylib.so ld.lld: error: unable to find library -l:mylib.so make: *** [Makefile:17: main] Error 1
Expected Behavior
Compile successfully.
Description of this behavior
-l :mylib.so
should work but it no longer works. The-l xyz.so
(without colon:
) format only works when the library is in thelibxyz.so
name format.ld manual
The text was updated successfully, but these errors were encountered: