1
General / Re: [sfml 2.0] Undefined references
« on: April 30, 2013, 02:40:54 pm »
Managed to fix it by installing a different GCC and CodeBlocks version.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
||=== Build: Debug in GraphIt (compiler: GNU GCC Compiler) ===|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| undefined reference to `__chkstk_ms'|
..\..\SFML\lib\libsfml-graphics-s.a(ImageLoader.cpp.obj):ImageLoader.cpp|| more undefined references to `__chkstk_ms' follow|
||=== Build failed: 6 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
sf::CircleShape node[11];
sf::Font font; font.loadFromFile("arial.ttf");
sf::Text nodeNumber("",font,15.f);
nodeNumber.setStyle(sf::Text::Bold);
nodeNumber.setColor(sf::Color::White);
for(int i=1; i<=n; i++)
{
node[i].setRadius(15.f);
node[i].setFillColor(sf::Color(78,190,218));
//node[i].setOutlineThickness(1.f);
//node[i].setOutlineColor(sf::Color(0,120,120));
node[i].setPosition(pos[i][0],pos[i][1]);
}
//...some code
for(int i=1; i<=n; i++)
{
window.draw(node[i]);
nodeNumber.setString(char('0'+i));
nodeNumber.setPosition(pos[i][0]+10,pos[i][1]+6);
window.draw(nodeNumber);
}