tippesi / Atlas-Engine

Cross platform toy render engine supporting physically based rendering and hardware/software ray tracing
MIT License
440 stars 29 forks source link

Link failed when I use MINGW64. #55

Closed luciddream-tsin closed 7 months ago

luciddream-tsin commented 7 months ago

MSYS MINGW64 compiling AtlasEngine under Windows 11:

  1. ffx_fsr2.cpp, std::size need #include
  2. ShaderLoader.cpp, std::find need #include
  3. Popup.h, int32_t need #include

When I solve the above three problems, I can compile successfully, but there is an error during the linking process.


AtlasEngineEditor.dir/App.cpp.obj: in function `Atlas::Editor::App::SetupMainDockspace(unsigned int)':
Atlas-Engine/src/editor/App.cpp:320:(.text+0x9c6): undefined reference to `ImGui::SetWindowSize(ImVec2 const&, int)'

C:/Software/MSYS2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Codes/GraphicsProj/Atlas-Engine/src/editor/App.cpp:321:(.text+0x9dc): undefined reference to `ImGui::SetWindowPos(ImVec2 const&, int)'
C:/Software/MSYS2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Codes/GraphicsProj/Atlas-Engine/src/editor/App.cpp:323:(.text+0x9e3): undefined reference to `ImGui::DockBuilderRemoveNode(unsigned int)'
C:/Software/MSYS2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Codes/GraphicsProj/Atlas-Engine/src/editor/App.cpp:324:(.text+0x9ec): undefined reference to `ImGui::DockBuilderAddNode(unsigned int, int)'
C:/Software/MSYS2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Codes/GraphicsProj/Atlas-Engine/src/editor/App.cpp:327:(.text+0xa0f): undefined reference to `ImGui::DockBuilderSplitNode(unsigned int, int, float, unsigned int*, unsigned int*)'
C:/Software/MSYS2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Codes/GraphicsProj/Atlas-Engine/src/editor/App.cpp:330:(.text+0xa40): undefined reference to `ImGui::DockBuilderDockWindow(char const*, unsigned int)'

....