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 think the better fix is to only export public BRender symbols from the shared libraries.
This error occurs because libbrender.so exports _BrDefaultDiagHandler twice, which is not possible.
The text was updated successfully, but these errors were encountered:
madebr
changed the title
Missing symbols when building shared libraries with -Wl,--no-undefined
Missing symbols when building shared libraries
Jul 6, 2024
When configuring DethRace with
-DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON
,linking fails due to missing symbols.
(eventually add
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined"
to emit an error on missing symbols)We either should disallow building shared libraries, or merge some libraries together.
note:
I had to apply this patch to fix the double definition of
_BrDefaultDiagHandler
incore/fw/defdiag.c
andcore/std/defdiag.c
.I think the better fix is to only export public BRender symbols from the shared libraries.
This error occurs because
libbrender.so
exports_BrDefaultDiagHandler
twice, which is not possible.The text was updated successfully, but these errors were encountered: