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

Author Topic: SFML 2.2 not working?!  (Read 1952 times)

0 Members and 1 Guest are viewing this topic.

LarryP

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
SFML 2.2 not working?!
« on: December 20, 2014, 07:34:20 pm »
I was using 2.1 and switched to 2.2 and am getting 96+ errors.  I am using VS 2012 and 2.2 32 bit.  Everything is just like I had setup for 2.1.  Template is the same exact settings.  I am stumped.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.2 not working?!
« Reply #1 on: December 20, 2014, 07:49:59 pm »
Laurent Gomila - SFML developer

LarryP

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: SFML 2.2 not working?!
« Reply #2 on: December 20, 2014, 07:59:00 pm »
I'm sorry, but which part of that advice am I not adhering to?

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: SFML 2.2 not working?!
« Reply #3 on: December 20, 2014, 08:05:18 pm »
You haven't told us what your problem is.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10989
    • View Profile
    • development blog
    • Email
Re: SFML 2.2 not working?!
« Reply #4 on: December 20, 2014, 08:11:46 pm »
Since you didn't provide any errors what so ever, I'll guess that you're linking statically and haven't seen the new paragraphs in the tutorial: http://www.sfml-dev.org/tutorials/2.2/start-vc.php
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

LarryP

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: SFML 2.2 not working?!
« Reply #5 on: December 20, 2014, 08:17:26 pm »
I thought that with 96+ errors it said that my template is  not compiling.  I'm sorry if I did not post thorough enough, but when I read my post it makes sense to me, guess I'm biased.  :)

OK.  I have a 2.1 template setup with the instructions from here http://www.sfml-dev.org/tutorials/2.1/start-vc.php.  It works fine with 2.1.  So I installed 2.2 into a similar directory and use the same settings from the 2.1 template from the above link.  However, when building the template I get 96+ errors.  I have cleaned out my Debug directory and done all I can think of.  Here is an example of an error, the first one in a long list:

Error   1   error LNK2019: unresolved external symbol __imp__glBlendFunc@8 referenced in function "private: void __thiscall sf::RenderTarget::applyBlendMode(struct sf::BlendMode const &)" (?applyBlendMode@RenderTarget@sf@@AAEXABUBlendMode@2@@Z)   E:\VS 2012 WORK\WORK\VC++\SFMLTemplate\sfml-graphics-s-d.lib(RenderTarget.cpp.obj)   SFMLTemplate

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: SFML 2.2 not working?!
« Reply #6 on: December 20, 2014, 08:20:27 pm »
This function is new in SFML 2.2, so one possible explanation is that you're still linking to SFML 2.1 libraries. Showing a few more errors could confirm this (you can even post the full output, with a "spoiler" tag).
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10989
    • View Profile
    • development blog
    • Email
Re: SFML 2.2 not working?!
« Reply #7 on: December 20, 2014, 08:26:08 pm »
Quote
__imp__glBlendFunc ... graphics-s-d.lib

You're linking statically and thus need to link all of SFML's dependencies as described in the new tutorial.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

LarryP

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: SFML 2.2 not working?!
« Reply #8 on: December 20, 2014, 08:29:44 pm »
Since you didn't provide any errors what so ever, I'll guess that you're linking statically and haven't seen the new paragraphs in the tutorial: http://www.sfml-dev.org/tutorials/2.2/start-vc.php

You fixed it!  I added those extra libraries and it compiles fine now.  Thank you sir.   :)

I had made the 2.1 template a few weeks ago and I went back down that list, but I did not see the new paragraphs.