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

Author Topic: cannot find -lwinm  (Read 1500 times)

0 Members and 1 Guest are viewing this topic.

vFUNKERv

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
cannot find -lwinm
« on: November 10, 2018, 03:00:13 pm »
So i have been trying to dynamically link my sfml libraries to a code blocks project. I got a bunch of errors like "_imp_*things*" and cannot find "-something". However with help from this website and other various sources i managed to solve all but one problem. Cannot find -lwinm. I dont know what winm is or where to find it, and using google to try and find it seems useless. If anyone can bring me up to speed about what the error means and how i can fix it that would be great.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: cannot find -lwinm
« Reply #1 on: November 10, 2018, 04:03:30 pm »
It's winmm and not winm. It's a system library and comes with your compiler.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

vFUNKERv

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: cannot find -lwinm
« Reply #2 on: November 10, 2018, 04:42:50 pm »
It's winmm and not winm. It's a system library and comes with your compiler.

I see, however linking the "libwinmm.a" file in the link libraries results in an error. what file should i use for it to work properly? for refrence my link libraries contain:

Project name: glew; freetype; jpeg; opengl32; gdi32; winmm wich seems to be the problem
debug: "sfml-***-s-d"
release: "sfml-***-s"

is there something im doing wrong?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: cannot find -lwinm
« Reply #3 on: November 10, 2018, 08:49:32 pm »
We haven't been using glew for quite a while. If you've seen that on some tutorial, it must be quite old and outdated. Check the newest official Code::Blocks tutorial: https://www.sfml-dev.org/tutorials/2.5/start-cb.php

We can't really tell you what the issue is, if you don't provide the error messages. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/