GroveEngine/tests/visual/test_sdl_groveengine.cpp
StillHammer 0540fbf526 fix: Resolve bgfx Frame 1 crash on Windows DLL + MinGW GCC 15 compatibility
- Add BGFX_CONFIG_MULTITHREADED=0 to fix TLS crash when bgfx runs from DLL
- Add -include stdint.h for MinGW GCC 15+ compatibility with bgfx third-party code
- Guard SDL2-dependent visual tests with if(SDL2_FOUND)
- Clean up debug logging in BgfxDevice::frame() and BgfxRendererModule::process()
- Re-enable all modules in test_full_stack_interactive.cpp
- Add grove::fs namespace for cross-platform filesystem operations
- Add InputModule C export for feedEvent across DLL boundary

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 11:03:06 +07:00

34 lines
891 B
C++

/**
* Test: SDL2 + GroveEngine linked together (but not used)
* This will tell us if linking SDL2 with GroveEngine causes the crash
*/
#include <fstream>
#include <iostream>
// Include headers but don't use them
#include <SDL.h>
#include <spdlog/spdlog.h>
#include <grove/IntraIOManager.h>
#include <grove/ModuleLoader.h>
#undef main
int main(int argc, char* argv[]) {
std::ofstream log("sdl_groveengine_test.log");
log << "=== SDL + GroveEngine Test ===" << std::endl;
log << "All libraries linked (SDL2 + spdlog + GroveEngine)" << std::endl;
log << "But not using any functions" << std::endl;
log.flush();
std::cout << "If you see this, linking SDL2 with GroveEngine doesn't crash" << std::endl;
log << "Success - no crash!" << std::endl;
log.close();
std::cout << "\nPress Enter to exit..." << std::endl;
std::cin.get();
return 0;
}