Hello, I've been using SFML for a while and it works great when I build my program for linux on Ubuntu. Though when I try to build it for windows I run into a bit of difficulty.
When compiling the code from the window tutorial,
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Window.hpp>
////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
using the command:
i586-mingw32msvc-gcc -o test test.cpp -mwindows -lstdc++ -lopengl32 -lglu32 -lsfml-window -lsfml-system
when I run it in wine I get a bunch of errors like:
err:module:import_dll Library libgcc_s_dw2-1.dll (which is needed by L"Z:\\home\\Test\\sfml-system.dll") not found
err:module:import_dll Library sfml-system.dll (which is needed by L"Z:\\home\\Test\\sfml-window.dll") not found
err:module:import_dll Library libgcc_s_dw2-1.dll (which is needed by L"Z:\\home\\Test\\sfml-window.dll") not found
err:module:import_dll Library sfml-window.dll (which is needed by L"Z:\\home\\Test\\test") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\Test\\test" failed, status c0000135
So apparently I'm missing "libgcc_s_dw2-1.dll". I've searched all directories of my computer and it was not found.
I tried installing codeblocks with MinGW and compiling it with that instead and got the same result. What should I do to fix this? What am I doing wrong?