Look I need help
This is my new approach:
1. i686-w64-mingw32-g++ -DSFML_STATIC -c -I/usr/local/include main.cxx
2. i686-w64-mingw32-g++ main.o -L/usr/local/lib -lFLAC -lfreetype -logg -lopenal32 -lsfml-audio-s -lsfml-graphics-s -lsfml-system -lsfml-network -lsfml-window -lvorbis -lvorbisenc -lvorbisfile
output:
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x7b): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0xaa): undefined reference to `sf::String::String(char const*, std::locale const&)'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x132): undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x160): undefined reference to `sf::Window::isOpen() const'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x188): undefined reference to `sf::Window::pollEvent(sf::Event&)'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x1a6): undefined reference to `sf::Window::close()'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x1db): undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x1f4): undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x204): undefined reference to `sf::Window::display()'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x216): undefined reference to `sf::RenderWindow::~RenderWindow()'
/usr/bin/i686-w64-mingw32-ld: main.o:main.cxx:(.text+0x2a5): undefined reference to `sf::RenderWindow::~RenderWindow()'
collect2: error: ld returned 1 exit status
NOTE: I also tried this way:
i686-w64-mingw32-g++ main.o /usr/local/lib/libFLAC.a /usr/local/lib/libfreetype.a /usr/local/lib/libogg.a .........
Still same result.
Why can't the linker detect the archive files? Those files (libogg.a, libfreetype.a libsfml-system-s.a etc etc) are in /usr/local/lib. I am not finding any clue about what should I do now.