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

Author Topic: lnk 2001: external symbol with sf::Image::getSize()?  (Read 2834 times)

0 Members and 1 Guest are viewing this topic.

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
lnk 2001: external symbol with sf::Image::getSize()?
« on: June 10, 2012, 10:06:52 pm »
1>NXResource.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<unsigned int> __thiscall sf::Image::getSize(void)const " (__imp_?

not sure why I am getting this error? I am using the RC build....

I get this on a Release build but not Debug...

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
Re: lnk 2001: external symbol with sf::Image::getSize()?
« Reply #1 on: June 10, 2012, 10:38:09 pm »
snapshot rc-28 version and I am using SFML_DYNAMIC

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: lnk 2001: external symbol with sf::Image::getSize()?
« Reply #2 on: June 10, 2012, 11:55:13 pm »
And I'm not sure (i.e. have no idea) what you're doing in your code...

snapshot rc-28 version and I am using SFML_DYNAMIC

Also you don't need to decalre SFML_DYNAMIC in SFML 2 anymore...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
Re: lnk 2001: external symbol with sf::Image::getSize()?
« Reply #3 on: June 11, 2012, 12:06:06 am »
   glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_RGBA8, image.getSize().x, image.getSize().y, 0, 
                   GL_RGBA, GL_UNSIGNED_BYTE, image.getPixelsPtr());

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
Re: lnk 2001: external symbol with sf::Image::getSize()?
« Reply #4 on: June 11, 2012, 03:19:48 am »
Thanks for the heads up on the dynamic preprocessor flag....

I just went through the entire pain the ass of making a whole new project in VC++2010 and dumping the code and libs into that new project and it works now... WTF is up with that? Anyone else have issues like that before?

Thanks