Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
lnk 2001: external symbol with sf::Image::getSize()?
Print
Pages: [
1
]
Author
Topic: lnk 2001: external symbol with sf::Image::getSize()? (Read 2813 times)
0 Members and 1 Guest are viewing this topic.
Mars_999
Full Member
Posts: 103
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...
Logged
Mars_999
Full Member
Posts: 103
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
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11032
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...
Quote from: Mars_999 on June 10, 2012, 10:38:09 pm
snapshot rc-28 version and I am using SFML_DYNAMIC
Also you don't need to decalre SFML_DYNAMIC in SFML 2 anymore...
Logged
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
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());
Logged
Mars_999
Full Member
Posts: 103
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
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
lnk 2001: external symbol with sf::Image::getSize()?