Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate linking errors on windows GCC #60

Open
AncuL001 opened this issue Oct 3, 2021 · 0 comments
Open

Investigate linking errors on windows GCC #60

AncuL001 opened this issue Oct 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@AncuL001
Copy link
Collaborator

AncuL001 commented Oct 3, 2021

[  2%] Building CXX object CMakeFiles/leraine-studio.dir/source/editing/base/edit-mode.cpp.obj
[  5%] Building CXX object CMakeFiles/leraine-studio.dir/source/editing/bpm-edit-mode.cpp.obj
C:\Users\USER\Codes\leraine-studio\source\editing\bpm-edit-mode.cpp: In member function 'void BpmEditMode::DisplayBpmNode(BpmPoint&, int, int, bool)':
C:\Users\USER\Codes\leraine-studio\source\editing\bpm-edit-mode.cpp:253:37: warning: cast from 'BpmPoint*' to 'int' loses precision [-fpermissive]
  253 |         ImGui::Begin(std::to_string((int)&InBpmPoint).c_str(), &open, windowFlags);
      |                                     ^~~~~~~~~~~~~~~~
[  7%] Building CXX object CMakeFiles/leraine-studio.dir/source/editing/note-edit-mode.cpp.obj
[ 10%] Building CXX object CMakeFiles/leraine-studio.dir/source/editing/select-edit-mode.cpp.obj
[ 12%] Building CXX object CMakeFiles/leraine-studio.dir/source/global/global-functions.cpp.obj
[ 15%] Building CXX object CMakeFiles/leraine-studio.dir/source/main.cpp.obj
[ 17%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/audio-module.cpp.obj
[ 20%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/background-module.cpp.obj
[ 22%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/base/module.cpp.obj
[ 25%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/beat-module.cpp.obj
[ 27%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/chart-parser-module.cpp.obj
[ 30%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/debug-module.cpp.obj
[ 32%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/dialog-module.cpp.obj
[ 35%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/edit-module.cpp.obj
[ 37%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/imgui-module.cpp.obj
[ 40%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/input-module.cpp.obj
[ 42%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/manager/module-manager.cpp.obj
[ 45%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/minimap-module.cpp.obj
[ 47%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/notification-module.cpp.obj
C:\Users\USER\Codes\leraine-studio\source\modules\notification-module.cpp: In member function 'virtual bool NotificationModule::Tick(const float&)':
C:\Users\USER\Codes\leraine-studio\source\modules\notification-module.cpp:27:41: warning: cast from 'NotificationMessage::Message*' to 'int' loses precision [-fpermissive]
   27 |             ImGui::Begin(std::to_string((int)&message).c_str(), &open, windowFlags);
      |                                         ^~~~~~~~~~~~~
[ 50%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/popup-module.cpp.obj
[ 52%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/shortcut-menu-module.cpp.obj
[ 55%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/timefield-render-module.cpp.obj
[ 57%] Building CXX object CMakeFiles/leraine-studio.dir/source/modules/waveform-module.cpp.obj
[ 60%] Building CXX object CMakeFiles/leraine-studio.dir/source/program/program-meta.cpp.obj
[ 62%] Building CXX object CMakeFiles/leraine-studio.dir/source/program/program.cpp.obj
[ 65%] Building CXX object CMakeFiles/leraine-studio.dir/source/structures/chart.cpp.obj
[ 67%] Building CXX object CMakeFiles/leraine-studio.dir/source/structures/configuration.cpp.obj
[ 70%] Building CXX object CMakeFiles/leraine-studio.dir/source/structures/notification-message.cpp.obj
[ 72%] Building CXX object CMakeFiles/leraine-studio.dir/source/structures/skin.cpp.obj
[ 75%] Building CXX object CMakeFiles/leraine-studio.dir/source/structures/timefield-render-graph.cpp.obj
[ 77%] Building CXX object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguidock/imguidock.cpp.obj
[ 80%] Building CXX object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguifilesystem/imguifilesystem.cpp.obj
[ 82%] Building C object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguifilesystem/minizip/ioapi.c.obj
[ 85%] Building C object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguifilesystem/minizip/unzip.c.obj
[ 87%] Building C object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguifilesystem/minizip/zip.c.obj
[ 90%] Building CXX object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguilistview/imguilistview.cpp.obj
[ 92%] Building CXX object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguistring/imguistring.cpp.obj
[ 95%] Building CXX object CMakeFiles/leraine-studio.dir/source/utilities/imgui/addons/imguitoolbar/imguitoolbar.cpp.obj
[ 97%] Building CXX object CMakeFiles/leraine-studio.dir/source/utilities/imgui/std/imgui-stdlib.cpp.obj
[100%] Linking CXX executable ..\binaries\leraine-studio.exe
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x4fa): undefined reference to `__imp__ZTVN2sf14RectangleShapeE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x538): undefined reference to `__imp__ZN2sf14RectangleShapeC1ERKNS_7Vector2IfEE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x554): undefined reference to `__imp__ZN2sf13Transformable11setPositionEff'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x577): undefined reference to `__imp__ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x599): undefined reference to `__imp__ZN2sf5ColorC1Ehhhh'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x5a5): undefined reference to `__imp__ZN2sf5Shape12setFillColorERKNS_5ColorE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x5ac): undefined reference to `__imp__ZN2sf12RenderStates7DefaultE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x5b8): undefined reference to `__imp__ZN2sf12RenderTarget4drawERKNS_8DrawableERKNS_12RenderStatesE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x5c6): undefined reference to `__imp__ZN2sf5ShapeD2Ev'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x889): undefined reference to `ImGui::SetNextWindowPos(ImVec2 const&, int, ImVec2 const&)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x9be): undefined reference to `ImGui::Begin(char const*, bool*, int)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0x9f7): undefined reference to `ImGui::Button(char const*, ImVec2 const&)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xa1f): undefined reference to `ImGui::SameLine(float, float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xa2b): undefined reference to `ImGui::Text(char const*, ...)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xa3b): undefined reference to `ImGui::SameLine(float, float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xa48): undefined reference to `ImGui::PushItemWidth(float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xa92): undefined reference to `ImGui::DragFloat(char const*, float*, float, float, float, char const*, int)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xac8): undefined reference to `ImGui::Button(char const*, ImVec2 const&)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xadf): undefined reference to `ImGui::SameLine(float, float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xaf7): undefined reference to `ImGui::Button(char const*, ImVec2 const&)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xb03): undefined reference to `ImGui::End()'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xb30): undefined reference to `ImGui::Button(char const*, ImVec2 const&)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xb54): undefined reference to `ImGui::SameLine(float, float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xb60): undefined reference to `ImGui::Text(char const*, ...)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xb70): undefined reference to `ImGui::SameLine(float, float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xb7d): undefined reference to `ImGui::PushItemWidth(float)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xbc7): undefined reference to `ImGui::DragFloat(char const*, float*, float, float, float, char const*, int)'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xcee): undefined reference to `__imp__ZTVN2sf14RectangleShapeE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xd13): undefined reference to `__imp__ZN2sf14RectangleShapeC1ERKNS_7Vector2IfEE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xd64): undefined reference to `__imp__ZN2sf13Transformable11setPositionEff'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xd80): undefined reference to `__imp__ZN2sf14RectangleShape7setSizeERKNS_7Vector2IfEE'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xdad): undefined reference to `__imp__ZN2sf5ColorC1Ehhhh'
c:/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\leraine-studio.dir/objects.a(bpm-edit-mode.cpp.obj):bpm-edit-mode.:(.text+0xdd7): undefined reference to `make[2]: *** Deleting file '../binaries/leraine-studio.exe'
make[2]: unlink: ../binaries/leraine-studio.exe: Permission denied
make[2]: *** [CMakeFiles\leraine-studio.dir\build.make:753: ../binaries/leraine-studio.exe] Interrupt
make[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/leraine-studio.dir/all] Error 130

The linking error happens a lot longer. i interrupted it early

@AncuL001 AncuL001 added the bug Something isn't working label Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant