GroveEngine/tests/visual/test_groveengine_link.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

31 lines
859 B
C++

/**
* GroveEngine Link Test
* Just link GroveEngine::impl, don't use any features
* If this crashes, problem is in static initialization
*/
#include <fstream>
#include <iostream>
#undef main
int main(int argc, char* argv[]) {
// IMMEDIATELY write to file (before anything else)
std::ofstream log("link_test.log");
log << "=== GroveEngine Link Test ===" << std::endl;
log << "Program started" << std::endl;
log.flush();
std::cout << "If you see this, GroveEngine::impl linking doesn't crash" << std::endl;
std::cout << "Check link_test.log for confirmation" << std::endl;
log << "Program completed successfully" << std::endl;
log << "GroveEngine::impl is linked but not used - no crash!" << std::endl;
log.close();
std::cout << "\nPress Enter to exit..." << std::endl;
std::cin.get();
return 0;
}