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 - gtx

Pages: [1]
1
i did and now im getting

||=== Build: Debug in testifsfmlworks (compiler: GNU GCC Compiler) ===|
obj\Debug\src\main.o||In function `main':|
C:\Users\gustx\Desktop\testifsfmlworks\src\main.cpp|21|undefined reference to `_imp___ZNK2sf10WindowBase6isOpenEv'|
C:\Users\gustx\Desktop\testifsfmlworks\src\main.cpp|24|undefined reference to `_imp___ZN2sf10WindowBase9pollEventERNS_5EventE'|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

2
Hello
I am getting the error

the procedure entry point
_ZN2sf6Cursor14loadFromPielsEPKhNS_7VectorsljEES4_could not be located in the dynamic link library
 when i try to use sf::Cursor

using windows 10,sfml2.5.1 and codeblocks mingw
everyother part sfml works  idk why this does not
i even checked and cursor is in the window header so idk


main.cpp

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window{{1024, 756}, "Hello World"};
    window.setVerticalSyncEnabled(true);

    sf::Cursor cursor;
    cursor.loadFromSystem(sf::Cursor::Arrow);
    window.setMouseCursor(cursor);

}

window.hpp

////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////

#include <SFML/System.hpp>
#include <SFML/Window/Clipboard.hpp>
#include <SFML/Window/Context.hpp>
#include <SFML/Window/ContextSettings.hpp>
#include <SFML/Window/Cursor.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Window/Joystick.hpp>
#include <SFML/Window/Keyboard.hpp>
#include <SFML/Window/Mouse.hpp>
#include <SFML/Window/Sensor.hpp>
#include <SFML/Window/Touch.hpp>
#include <SFML/Window/VideoMode.hpp>
#include <SFML/Window/Window.hpp>
#include <SFML/Window/WindowHandle.hpp>
#include <SFML/Window/WindowStyle.hpp>

Pages: [1]