EliasFarhan/NekoEngine

Problème de linking avec ImGui [Oleg].

Closed this issue · 1 comments

Avec le nouveau bout de code d'éditeur pour visualiser l'utilisation de la mémoire par les allocateurs j'ai des erreurs de linking avec ImGui:

[ 96%] Linking CXX executable bench_map
/usr/bin/ld: ../core/libNeko_Core.a(custom_allocator.cpp.o): in function `neko::LinearAllocator::Profile()':
/home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:38: undefined reference to `ImGui::GetContentRegionAvail()'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:39: undefined reference to `ImGui::LabelText(char const*, char const*, ...)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:45: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:46: undefined reference to `ImGui::SameLine(float, float)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:50: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: ../core/libNeko_Core.a(custom_allocator.cpp.o): in function `neko::StackAllocator::Profile()':
/home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:95: undefined reference to `ImGui::LabelText(char const*, char const*, ...)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:96: undefined reference to `ImGui::GetContentRegionAvail()'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:97: undefined reference to `ImGui::LabelText(char const*, char const*, ...)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:103: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:104: undefined reference to `ImGui::SameLine(float, float)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:108: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: ../core/libNeko_Core.a(custom_allocator.cpp.o): in function `neko::FreeListAllocator::Profile()':
/home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:214: undefined reference to `ImGui::LabelText(char const*, char const*, ...)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:217: undefined reference to `ImGui::GetContentRegionAvail()'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:231: undefined reference to `ImGui::PushID(int)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:232: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:233: undefined reference to `ImGui::PopID()'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:234: undefined reference to `ImGui::SameLine(float, float)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:237: undefined reference to `ImGui::PushID(int)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:238: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:239: undefined reference to `ImGui::PopID()'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:245: undefined reference to `ImGui::SameLine(float, float)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:247: undefined reference to `ImGui::PushID(int)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:248: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:249: undefined reference to `ImGui::PopID()'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:250: undefined reference to `ImGui::SameLine(float, float)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:257: undefined reference to `ImGui::SameLine(float, float)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:259: undefined reference to `ImGui::PushID(int)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:260: undefined reference to `ImGui::Selectable(char const*, bool*, int, ImVec2 const&)'
/usr/bin/ld: /home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:261: undefined reference to `ImGui::PopID()'
/usr/bin/ld: ../core/libNeko_Core.a(custom_allocator.cpp.o): in function `neko::ProxyAllocator::Profile()':
/home/user/Desktop/NekoEngine/core/src/engine/custom_allocator.cpp:287: undefined reference to `ImGui::LabelText(char const*, char const*, ...)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [benchmark/CMakeFiles/bench_map.dir/build.make:89: benchmark/bench_map] Error 1
make[2]: *** [CMakeFiles/Makefile2:1119: benchmark/CMakeFiles/bench_map.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1126: benchmark/CMakeFiles/bench_map.dir/rule] Error 2
make: *** [Makefile:500: bench_map] Error 2

Je sais pas vraiment d'oú ça vient...