1
General / Re: SFML and cmake
« on: September 14, 2013, 11:01:45 pm »
Sorry for not specifying, this is on Windows 7 using Nuwen's MinGW distro ( nuwen.net/mingw.html ).
Here are thelink errors
Here are thelink errors
Linking CXX executable chesspp.exe
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x13d): undefin
ed reference to `sf::Clock::Clock()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x144): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x471): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x55b): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x589): undefin
ed reference to `sf::seconds(float)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x5f1): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x6f4): undefin
ed reference to `sf::Clock::restart()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x754): undefin
ed reference to `sf::Clock::Clock()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x75b): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x7ce): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x8e1): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9c4): undefin
ed reference to `sf::Clock::Clock()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9d6): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xab2): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xab7): undefin
ed reference to `sf::operator!=(sf::Time, sf::Time)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xac7): undefin
ed reference to `sf::Clock::getElapsedTime() const'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xad3): undefin
ed reference to `sf::operator-(sf::Time, sf::Time)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xadb): undefin
ed reference to `sf::sleep(sf::Time)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xae3): undefin
ed reference to `sf::Clock::restart()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xaf1): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xc34): undefin
ed reference to `sf::Clock::restart()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xd60): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xe71): undefin
ed reference to `sf::err()'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Progr
am Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj): bad reloc address 0x24 in section `.xdat
a'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [chesspp.exe] Error 1
make[1]: *** [CMakeFiles/chesspp.dir/all] Error 2
make: *** [all] Error 2
C:\Users\Sean\Documents\ChessPlusPlus\build>
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x13d): undefin
ed reference to `sf::Clock::Clock()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x144): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x471): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x55b): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x589): undefin
ed reference to `sf::seconds(float)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x5f1): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x6f4): undefin
ed reference to `sf::Clock::restart()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x754): undefin
ed reference to `sf::Clock::Clock()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x75b): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x7ce): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x8e1): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9c4): undefin
ed reference to `sf::Clock::Clock()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0x9d6): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xab2): undefin
ed reference to `sf::Time::Zero'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xab7): undefin
ed reference to `sf::operator!=(sf::Time, sf::Time)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xac7): undefin
ed reference to `sf::Clock::getElapsedTime() const'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xad3): undefin
ed reference to `sf::operator-(sf::Time, sf::Time)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xadb): undefin
ed reference to `sf::sleep(sf::Time)'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xae3): undefin
ed reference to `sf::Clock::restart()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xaf1): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xc34): undefin
ed reference to `sf::Clock::restart()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xd60): undefin
ed reference to `sf::err()'
C:/Program Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj):Window.cpp:(.text+0xe71): undefin
ed reference to `sf::err()'
c:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Progr
am Files (x86)/SFML/lib/libsfml-window-s.a(Window.cpp.obj): bad reloc address 0x24 in section `.xdat
a'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [chesspp.exe] Error 1
make[1]: *** [CMakeFiles/chesspp.dir/all] Error 2
make: *** [all] Error 2
C:\Users\Sean\Documents\ChessPlusPlus\build>