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

Show Posts

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.


Topics - Inubis

Pages: [1]
1
General / [solved][sfml 2.0] Undefined references
« on: April 29, 2013, 10:19:21 pm »
So I downloaded the new 2.0 release for GCC 4.7 TDM (used with CodeBlocks), set up all the paths but seem to get this compiler error:

Quote
||=== 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)) ===|

This happens with the (minimal)code in the tutorial but also with every other previously-working code(using 2.0RC). I use the static libraries, OS is Windows 7 32bit.

Thanks.

2
Graphics / [solved][sfml 2.0]Text not always rendering correctly
« on: February 23, 2013, 12:48:49 pm »
SFML beginner here. I'm having weird issues with rendering text. I'm writing a program that reads nodes, any edges and then draws them to the screen. I want each node to have a number. The issue is that adding some stuff to the program(like setting the outline color for the nodes) breaks the text, showing it as squares. Relevant piece of code:

Code: [Select]
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);
}



As you can see, it works fine. However, adding outline to the nodes(commented out) causes this:



Thanks.

edit: I'm using Windows 7 32bit with an AMD B55 CPU and AMD HD5770 video card.

Pages: [1]
anything