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

Author Topic: thor and SFML 2.5.0  (Read 2574 times)

0 Members and 1 Guest are viewing this topic.

GamDev

  • Newbie
  • *
  • Posts: 29
    • View Profile
thor and SFML 2.5.0
« on: October 14, 2018, 01:54:04 am »
Hi, I want to connect thor to sfml
but when compiling produces an error:
Quote
ld.exe||cannot find -lthor|
Why ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: thor and SFML 2.5.0
« Reply #1 on: October 14, 2018, 07:03:59 am »
Does the Thor library file exist?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

GamDev

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: thor and SFML 2.5.0
« Reply #2 on: October 14, 2018, 09:04:12 am »
Yes.

GamDev

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: thor and SFML 2.5.0
« Reply #3 on: October 14, 2018, 09:10:59 am »
I downloaded Precompiled binaries, including documentation and examples: "Windows, MinGW with g++"
Build log:
Quote
[100.0%] x86_64-w64-mingw32-g++.exe -L..\SFML-2.5.0\lib -L..\thor-v2.0-mingw\lib -o bin\Release\234.exe obj\Release\main.o  -s  -lsfml-graphics -lsfml-window -lsfml-system -lthor
C:/Users/Asus/Desktop/Test/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\thor-v2.0-mingw\lib/libthor.dll.a when searching for -lthor
C:/Users/Asus/Desktop/Test/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ..\thor-v2.0-mingw\lib/libthor.dll.a when searching for -lthor
C:/Users/Asus/Desktop/Test/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lthor
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
« Last Edit: October 14, 2018, 09:44:18 am by GamDev »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: thor and SFML 2.5.0
« Reply #4 on: October 14, 2018, 01:40:34 pm »
The linker complains that it can't find it, as such either the path provided is wrong or the file doesn't exist at the specified place. Triple check that your relative path is correct.

Also not related, but will cause issues later on, you need to link Thor before SFML, as Thor depends on SFML.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/