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

Pages: [1]
1
Audio / Linker Error when using Sound functions
« on: March 09, 2018, 04:07:43 pm »
Hello all,

I have started to use SFML recently. So I downloaded the 2.4.2 Win64 version of the library and started to play around the examples.
The only problem I have encountered so far is a linker error when I call play/pause/stop on a sf::Sound object. For example for play I get:

main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __cdecl sf::Sound::play(void)" (__imp_?stop@Sound@sf@@UEAAXXZ) referenced in function main

Note that I am linking against sfml-audio.lib and can use other objects of the audio lib like AudioBuffers or even other functions of the sf::Sound like setBuffer which is wierd to me.

Does anyone have a clue on whats happening?

Thanks in advance.

Pages: [1]