Hi, this is my first time using sfml and dear imgui and c++ for a project.
My project runs perfectly on my linux machine, I used mingw-w64-gcc and mingw-w64-g++ to cross-compile my project to a windows executable. I am not using any IDE, I have a makefile. Now, everything works, it compiles, links, and no error whatsoever when im building one for windows. To prove this, I run the .exe using Wine,
1. First of all, I get this `missing libstdc++-6.dll` and `missing libgcc_s_sjlj-1.dll` and such errors. So I've located the following dll and copy pasted it next to my .exe
I have copied the files from `/usr/i686-w64-mingw32/bin/` (because that's the mingw compiler Ive also used. Running again with wine, it works. But when I tested it on an actual Windows (on my friend's pc), I get this `__gxx_personality_v0` error.
2. Second, Ive tried `static linking`, instead of using `-lsfml-graphics` and such for my linker flags, I have used `-lsfml-graphics-s` and such, but I get this `undefined reference` to a bunch of `gl` stuffs. So ive added `-lopengl32 -lwinmm` and stuffs the forum said i should include, I have also passed the `SFML_STATIC` preprocessor macro. Still the same `undefined references` errors.
If you need my Makefile, it's in the attachments below.
please help me.