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
`.rodata._ZTAXtlN12_GLOBAL__N_112fixed_stringILm12EEEtlSt5arrayIcLm12EEtlA12_cLc118ELc111ELc105ELc100ELc32ELc102ELc117ELc110ELc99ELc40ELc41EEEEE' referenced in section `.text.startup[__cxx_global_var_init]' of CMakeFiles/antithesis-test.dir/bar.cpp.o: defined in discarded section `.rodata._ZTAXtlN12_GLOBAL__N_112fixed_stringILm12EEEtlSt5arrayIcLm12EEtlA12_cLc118ELc111ELc105ELc100ELc32ELc102ELc117ELc110ELc99ELc40ELc41EEEEE[_ZTAXtlN12_GLOBAL__N_112fixed_stringILm12EEEtlSt5arrayIcLm12EEtlA12_cLc118ELc111ELc105ELc100ELc32ELc102ELc117ELc110ELc99ELc40ELc41EEEEE]' of CMakeFiles/antithesis-test.dir/bar.cpp.o
`.rodata._ZTAXtlN12_GLOBAL__N_112fixed_stringILm15EEEtlSt5arrayIcLm15EEtlA15_cLc84ELc69ELc83ELc84ELc58ELc32ELc97ELc115ELc115ELc101ELc114ELc116ELc32ELc49EEEEE' referenced in section `.text.startup[__cxx_global_var_init.1]' of CMakeFiles/antithesis-test.dir/bar.cpp.o: defined in discarded section `.rodata._ZTAXtlN12_GLOBAL__N_112fixed_stringILm15EEEtlSt5arrayIcLm15EEtlA15_cLc84ELc69ELc83ELc84ELc58ELc32ELc97ELc115ELc115ELc101ELc114ELc116ELc32ELc49EEEEE[_ZTAXtlN12_GLOBAL__N_112fixed_stringILm15EEEtlSt5arrayIcLm15EEtlA15_cLc84ELc69ELc83ELc84ELc58ELc32ELc97ELc115ELc115ELc101ELc114ELc116ELc32ELc49EEEEE]' of CMakeFiles/antithesis-test.dir/bar.cpp.o
Both errors happen due to two different reasons:
There are two asserts with the same error (UNREACHABLE("TEST: assert 1", {}))
There are two functions with the same name (func)
Both cases lead to an instantiation of a variable with the type fixed_string (with the same arguments in the constructor) located in an anonymous namespace in antithesis_sdk.h.
As a workaround, the anonymous namespace can be replaced with a regular namespace.
The text was updated successfully, but these errors were encountered:
tyler92
changed the title
Linker error if there are more than one asserts with the same name
Linker error if there are more than one assert with the same name
Sep 3, 2024
tyler92
changed the title
Linker error if there are more than one assert with the same name
Linker error if there is more than one assert with the same name
Sep 3, 2024
With the following two files:
We have two linker errors:
Both errors happen due to two different reasons:
UNREACHABLE("TEST: assert 1", {})
)func
)Both cases lead to an instantiation of a variable with the type
fixed_string
(with the same arguments in the constructor) located in an anonymous namespace inantithesis_sdk.h
.As a workaround, the anonymous namespace can be replaced with a regular namespace.
The text was updated successfully, but these errors were encountered: