Hi All,
Its my first post on the forum after burning a lot of hours in debugging/searching this issue.
I compiled SFML-2.3.2-windows-gcc-4.8.1-tdm-32-bit using g++ (tdm-1) 5.1.0. Hoping that GCC 5.1 (TDM) should still be fine to compile SFML-2.3.2 as mentioned above.
The compilation went well and I could run a simple RenderWindow.
However, now when I'm trying to add some graphics using sf::Texture, the code compiles well.
Following steps summarize the compilation
g++ "-IC:\\Dev Work\\PP\\SFML\\include" -O0 -g3 -Wall -std=c++11 -c -fmessage-length=0 -o main.o "..\\main.cc"
g++ "-LC:\\Dev Work\\PP\\SFML\\build5\\lib" -o TestSFML.exe main.o -lsfml-graphics -lsfml-window -lsfml-system
But, when I run the executable. I get the following error
"The procedure entry point sf::Texture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, sf::Rect<int> const&)
could not be located in the dynamic link library sfml-graphics-2.dll"
Which probably means that my SFML is compiled without C++11 flag on? (I'm not sure if there's a way to confirm that).
Then I tried compiling SFML by inserting the following line in CMakeLists. I
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
However, I still get the same error. I'm a little new to Windows Environment. Would really appreciate any help on this issue?
thanks