Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML media demo - Linking error on windows 10  (Read 2077 times)

0 Members and 1 Guest are viewing this topic.

RKim

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
SFML media demo - Linking error on windows 10
« on: April 28, 2018, 05:41:17 pm »
 I tried with the sfml media demo code (https://www.sfml-dev.org/documentation/2.4.2/). I can build and run with CLion on mac os x. However, I am having the following linking error on windows 10 with CLion. I wonder whether I need extra setup on windows 10. By the way, I don't have any D: drive. I installed SFML to C:\SFML.

C:/SFML/lib/libsfml-window-s-d.a(Window.cpp.obj): In function `ZN2sf6WindowC2Ev':
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:48: undefined reference to `sf::Clock::Clock()'
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:48: undefined reference to `sf::Time::Zero'
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:48: undefined reference to `sf::Time::Zero'
C:/SFML/lib/libsfml-window-s-d.a(Window.cpp.obj): In function `ZN2sf6WindowC2ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE':
D:/sfml-release/_Sources/SFML/src/SFML/Window/Window.cpp:59: undefined reference to `sf::Clock::Clock()'
....

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10823
    • View Profile
    • development blog
    • Email
Re: SFML media demo - Linking error on windows 10
« Reply #1 on: April 28, 2018, 05:55:27 pm »
You're not linking the sfml-system module or you're linking in the wrong order.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/