SFML community forums

Help => Graphics => Topic started by: Mars_999 on June 10, 2012, 10:06:52 pm

Title: lnk 2001: external symbol with sf::Image::getSize()?
Post by: Mars_999 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...
Title: Re: lnk 2001: external symbol with sf::Image::getSize()?
Post by: Mars_999 on June 10, 2012, 10:38:09 pm
snapshot rc-28 version and I am using SFML_DYNAMIC
Title: Re: lnk 2001: external symbol with sf::Image::getSize()?
Post by: eXpl0it3r 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...
Title: Re: lnk 2001: external symbol with sf::Image::getSize()?
Post by: Mars_999 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());
Title: Re: lnk 2001: external symbol with sf::Image::getSize()?
Post by: Mars_999 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