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.


Messages - Bool_Wolf

Pages: [1]
1
General / Re: undefined reference to...
« on: April 28, 2017, 03:56:11 pm »
Yes, I defined this macro, and i have also linked the other libraries.
Here the list (in the right order):

sfml-graphics-s
freetype
jpeg
sfml-window-s
opengl32
gdi32
sfml-audio-s
openal32
flac
vorbisenc
vorbisfile
vorbis
ogg
sfml-network-s
ws2_32
sfml-system-s
winmm

I have add this libraries not into the "Debug" or the "Release" voice, but only into the general build options. I've done rightly?

obviously i also insert the search directories paths (include and lib).

So what doesn't work!?

2
General / Re: undefined reference to...
« on: April 27, 2017, 08:45:40 pm »
Yes, i followed every step carefully.
I try to change the version library now, an i hope it is a problem of version.

3
General / undefined reference to...
« on: April 27, 2017, 08:16:41 pm »
Hi, I'm newbie, i recently downloaded the SFML 2.4.2 library and i tried to use it into a my own project.

I followed the official tutorial (https://www.sfml-dev.org/tutorials/2.4/start-cb.php), but i have a problem.

I used the static library version, so i linked the necessary lib (graphics, window and finally system), and i tried to build the project, Below the main.cpp:

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}
 

And now the output error:

||=== Build: Release in smfl snake (compiler: GNU GCC Compiler) ===|
C:\Users\User\SFML-2.4.2\lib\libsfml-graphics-s.a(CircleShape.cpp.obj):CircleShape.cpp|| undefined reference to `_Unwind_Resume'|
C:\Users\User\SFML-2.4.2\lib\libsfml-graphics-s.a(CircleShape.cpp.obj):CircleShape.cpp:(.text$_ZN2sf11CircleShapeD0Ev[__ZN2sf11CircleShapeD0Ev]+0x24)||undefined reference to `operator delete(void*, unsigned int)'|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 5 second(s)) ===|

I have the suspicion that i don't include all necessary lib, but i dont't know what.

Anyone can help me?
Thanks.

P.S.: I use Code::Blocks, MinGW

Pages: [1]