mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++'
Ostatnio zmodyfikowano 2015-02-09 20:34
Arczyl Temat założony przez niniejszego użytkownika |
mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++' » 2015-02-09 18:19:34 Witam. Postanowiłem zacząć zabawę z biblioteką SFML, lecz po zrobieniu wszystkiego jak w tutorial'u otrzymuję taki log: mingw32-g++.exe -L..\lib -L..\lib -o "bin\Debug\SMFL how to.exe" "obj\Debug\SMFL test.o" -static -static-libgcc -static-libstdc++ -std=c++11 -static -static-libgcc -static-libstdc++ -std=c++11 -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++' mingw32-g++.exe: error: unrecognized command line option '-static-libstdc++' Process terminated with status 1 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) Przeszukiwałem internet wraz z tym forum, lecz nie znalazłem rozwiązania więc uznałem, że muszę założyć ten temat. Będę wdzięczny za pomoc :) |
|
DejaVu |
» 2015-02-09 19:16:39 |
|
maly |
» 2015-02-09 19:30:23 Małe sprostowanie, tylko tdm-gcc nie posiada opcji -static-libstdc++. |
|
Arczyl Temat założony przez niniejszego użytkownika |
» 2015-02-09 19:49:34 Po wyrzuceniu tej opcji wywala : -------------- Build: Debug in SMFL how to (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -L..\lib -L..\lib -o "bin\Debug\SMFL how to.exe" "obj\Debug\SMFL test.o" -static -static-libgcc -std=c++11 -static -static-libgcc -std=c++11 -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d obj\Debug\SMFL test.o: In function `main': J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:6: undefined reference to `sf::String::String(char const*, std::locale const&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:6: undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:6: undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:7: undefined reference to `sf::Clock::Clock()' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:14: undefined reference to `sf::Window::close()' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:11: undefined reference to `sf::Window::pollEvent(sf::Event&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:17: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:17: undefined reference to `sf::RenderTarget::clear(sf::Color const&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:19: undefined reference to `sf::Clock::getElapsedTime() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:19: undefined reference to `sf::Time::asSeconds() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:19: undefined reference to `sf::RenderWindow::getSize() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:19: undefined reference to `sf::RenderWindow::getSize() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:19: undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:20: undefined reference to `sf::CircleShape::getRadius() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:20: undefined reference to `sf::CircleShape::getRadius() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:20: undefined reference to `sf::Transformable::setOrigin(sf::Vector2<float> const&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:21: undefined reference to `sf::RenderWindow::getSize() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:21: undefined reference to `sf::RenderWindow::getSize() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:21: undefined reference to `sf::Transformable::setPosition(float, float)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:22: undefined reference to `sf::Color::Yellow' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:22: undefined reference to `sf::Shape::setFillColor(sf::Color const&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:23: undefined reference to `sf::RenderStates::Default' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:23: undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:25: undefined reference to `sf::Window::display()' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:8: undefined reference to `sf::Window::isOpen() const' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:27: undefined reference to `sf::RenderWindow::~RenderWindow()' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:6: undefined reference to `sf::RenderWindow::~RenderWindow()' J:/C++/SFML-2.2/SMFL how to/SMFL test.cpp:27: undefined reference to `sf::RenderWindow::~RenderWindow()' obj\Debug\SMFL test.o: In function `ZN2sf11CircleShapeD1Ev': J:\C++\SFML-2.2\SMFL how to/../include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape' J:\C++\SFML-2.2\SMFL how to/../include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape' J:\C++\SFML-2.2\SMFL how to/../include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `sf::Shape::~Shape()' collect2.exe: error: ld returned 1 exit status Process terminated with status 1 (0 minute(s), 4 second(s)) 31 error(s), 0 warning(s) (0 minute(s), 4 second(s)) [/log[
|
|
maly |
» 2015-02-09 19:59:37 |
|
DejaVu |
» 2015-02-09 20:26:12 No ale to są konkretne błędy kompilacji, które nie mają związku już z błędem jaki podałeś w temacie. Chcesz sobie podyskutować na temat nowych błędów kompilacji - załóż nowy temat. Choć odpowiedzi na te pytania masz zawarte w kursie do którego otrzymałeś linka. |
|
Arczyl Temat założony przez niniejszego użytkownika |
» 2015-02-09 20:34:50 Eh przeglądam ten tutorial i wygląda na to, że wszystko jest tak jak powinno, ale nadal nie działa. |
|
« 1 » |