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

Pages: [1]
1
Audio / Re: Error Compiling SoundSource when X11 is Being Used
« on: January 25, 2018, 07:06:42 pm »
Swapping the include order fixed it, thanks a ton!!!!!!

2
Audio / Re: Error Compiling SoundSource when X11 is Being Used
« on: January 25, 2018, 04:24:48 pm »
Potentially related post:

https://en.sfml-dev.org/forums/index.php?topic=2675.msg19011#msg19011

The last poster mentions something like this.

3
Audio / Error Compiling SoundSource when X11 is Being Used
« on: January 25, 2018, 04:23:05 pm »
Hello all,

Info:
SFML 2.3.2 (Latest on Ubuntu?)
Dynamically Linked

I'm working on a project that has been successfully using X11. I've recently added Audio, and I started getting compile errors in SoundSource.hpp. I have found if I comment out including X11 and it's code, the error goes away. It appears that both X11 and SoundSource define a Status enum which is conflicting.

Error:
Code: [Select]
/home/derdro/Tools/IDEs/clion-2017.3.1/bin/cmake/bin/cmake --build /home/derdro/Projects/CLionProjects/GBEmu/cmake-build-debug --target GBEmu -- -j 2
[  5%] Building CXX object CMakeFiles/GBEmu.dir/Source/Main.cpp.o
In file included from /home/derdro/Projects/CLionProjects/GBEmu/Source/Main.cpp:4:0:
/usr/include/SFML/Audio/SoundSource.hpp:50:10: error: expected identifier before β€˜int’
     enum Status
          ^
In file included from /usr/include/SFML/Audio/Sound.hpp:32:0,
                 from /home/derdro/Projects/CLionProjects/GBEmu/Source/Components/Apu.hpp:14,
                 from /home/derdro/Projects/CLionProjects/GBEmu/Source/Components/Memory.hpp:15,
                 from /home/derdro/Projects/CLionProjects/GBEmu/Source/Gameboy.hpp:12,
                 from /home/derdro/Projects/CLionProjects/GBEmu/Source/Main.cpp:6:
/usr/include/SFML/Audio/SoundSource.hpp:51:5: error: expected unqualified-id before β€˜{’ token
     {
     ^
CMakeFiles/GBEmu.dir/build.make:62: recipe for target 'CMakeFiles/GBEmu.dir/Source/Main.cpp.o' failed
make[3]: *** [CMakeFiles/GBEmu.dir/Source/Main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/GBEmu.dir/all' failed
make[2]: *** [CMakeFiles/GBEmu.dir/all] Error 2
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/GBEmu.dir/rule' failed
make[1]: *** [CMakeFiles/GBEmu.dir/rule] Error 2
Makefile:164: recipe for target 'GBEmu' failed
make: *** [GBEmu] Error 2

Any idea the easiest way to fix this? Thanks!

4
Graphics / glFlush unresolved external symbol __imp__glFlush@0
« on: December 23, 2014, 10:28:33 pm »
I am trying to call glFlush() because of this issue:

http://en.sfml-dev.org/forums/index.php?topic=10722.msg74049#msg74049

I have included:

#include <SFML/OpenGL.hpp>

But I am getting this error: error LNK2001: unresolved external symbol __imp__glFlush@0

Anyone know what's causing this?


Thanks!

5
Hello,

I am using SFML-2.2, visual studio 2013.

Now I have a client and a separate server program. When I run the client and have it sit at the login screen it uses between 0-1 percent cpu.

Now if I start the server program, JUST start it, don't open any sockets, or connect to anything, suddenly the client program uses over 20 percent cpu, when I didn't even touch the client. If I then close the server program, the client goes back to using 0-1 percent cpu.

Any ideas why this would be happening?

Thanks!

Pages: [1]