Fast-DDS icon indicating copy to clipboard operation
Fast-DDS copied to clipboard

foonathan::memory::detail::debug_fill_new multiple defined symbols found

Open TobiasJacob opened this issue 11 months ago • 1 comments

Is there an already existing issue for this?

  • [X] I have searched the existing issues

Expected behavior

Building FastDDS under windows works using cmake

Current behavior

It throws

foonathan_memory-0.7.3-dbg.lib(debug_helpers.obj) : error LNK2005: "void * __cdecl foonathan::memory::detail::debug_fill_new(void *,unsigned __int64,unsigned __int64)" (?debug_fill_new@detail@memory@foonathan@@YAPEAXPEAX_K1@Z) already defined in WriterProxy.obj [C:\Users\TobiasJacob\git\gdextension_cpp_example\Fast-DDS
\build\src\cpp\fastrtps.vcxproj]
foonathan_memory-0.7.3-dbg.lib(debug_helpers.obj) : error LNK2005: "void * __cdecl foonathan::memory::detail::debug_fill_free(void *,unsigned __int64,unsigned __int64)" (?debug_fill_free@detail@memory@foonathan@@YAPEAXPEAX_K1@Z) already defined in WriterProxy.obj [C:\Users\TobiasJacob\git\gdextension_cpp_example\Fast-D 
DS\build\src\cpp\fastrtps.vcxproj]
foonathan_memory-0.7.3-dbg.lib(debug_helpers.obj) : error LNK2005: "void __cdecl foonathan::memory::detail::debug_fill_internal(void *,unsigned __int64,bool)" (?debug_fill_internal@detail@memory@foonathan@@YAXPEAX_K_N@Z) already defined in WriterProxy.obj [C:\Users\TobiasJacob\git\gdextension_cpp_example\Fast-DDS\build 
\src\cpp\fastrtps.vcxproj]
     Creating library C:/Users/TobiasJacob/git/gdextension_cpp_example/Fast-DDS/build/src/cpp/Debug/fastrtpsd-2.13.lib and object C:/Users/TobiasJacob/git/gdextension_cpp_example/Fast-DDS/build/src/cpp/Debug/fastrtpsd-2.13.exp
C:\Users\TobiasJacob\git\gdextension_cpp_example\Fast-DDS\build\src\cpp\Debug\fastrtpsd-2.13.dll : fatal error LNK1169: one or more multiply defined symbols found [C:\Users\TobiasJacob\git\gdextension_cpp_example\Fast-DDS\build\src\cpp\fastrtps.vcxproj]

Steps to reproduce

Clone the Repo, install the dependencies

mkdir build cd build cmake .. cmake --build build

Fast DDS version/commit

commit 1762b8c9ef4a27cd18bd4d6cafcd4a7b94a1338a (HEAD, tag: v2.13.3, origin/2.13.3)

Platform/Architecture

Other. Please specify in Additional context section.

Transport layer

Default configuration, UDPv4 & SHM

Additional context

Windows 11 Visual Studio 2022

XML configuration file

No response

Relevant log output

No response

Network traffic capture

asdf

TobiasJacob avatar Feb 28 '24 16:02 TobiasJacob

Hi @TobiasJacob thanks for the report. Is this the only installation of Fast DDS that you have locally? If you are trying to build the whole workspace, have you tried to follow the steps of the documentation in CMake installation section?

elianalf avatar Mar 06 '24 09:03 elianalf

According to our CONTRIBUTING.md guidelines, I am closing this issue due to inactivity. Please, feel free to reopen it if necessary.

JesusPoderoso avatar Jun 03 '24 14:06 JesusPoderoso