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

Pages: [1]
1
Audio / Can't play audiofile, just get random characters
« on: March 08, 2016, 02:06:56 pm »
When I try to play an audiofile, I get a console window, which just shows a lot of random characters. And after that a screen pops-up saying: console-aplication3 has stopped working. When i open the debugger I get this error: Unhandled exception at 0x6B37DC17 (vcruntime140.dll) in ConsoleApplication3.exe: 0xC0000005: Access violation reading location 0x00CE4000.
This is my code:
#include "stdafx.h"
#include <SFML/Audio.hpp>
int main()
{
   sf::Music test;
   if (!test.openFromFile("music.ogg"))
      return -1; // error
   test.play();
}
anybody knows what goes wrong?

2
I get a: cannot open include file: "SFML/graphics.hpp no such a file error when trying to dynamic link, I think this means I messed up when installing sfml, but I can't find where.
I've told the compiler where to find the header:


I've linked to the libraries:


And i've included the dlls:

I'm trying to run the testcode from the tutorial, on visual 2015, on windows 8
Anybody knows what goes wrong?

Pages: [1]