On 18/07/13 1:11 AM, Anthony J. Bentley wrote:
Matthew Dempsky writes:
On Sun, Jul 7, 2013 at 8:36 PM, Anthony J. Bentley <anth...@cathet.us>wrote:

Upstream released another graphics plugin, video-glide64mk2, but I haven't
made a port for it because it #includes <thread>, which doesn't seem to
appear with either GCC 4.6 or clang.


Is the source file C or C++?

C++. Below is the error message. I've attached a port for the plugin, which
currently does not build; of course, I could have missed something really
obvious. Extract from within /usr/ports/emulators/mupen64plus to try it.

c++ -fvisibility-inlines-hidden -std=gnu++0x -O2 -pipe -g  -Wall -ffast-math 
-fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/Glitch64/inc -DGCC -mmmx 
-msse -fno-PIC -I/usr/include -I/usr/local/include/libpng16 -I/usr/X11R6/include 
-I/usr/include/dev/pci/drm -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 
-D_REENTRANT -I/usr/X11R6/include -DXTHREADS "-I/usr/local/include/mupen64plus" 
-MD -D__unix__ -DTEXTURE_FILTER   -c -o _obj/GlideHQ/TxFilter.o 
../../src/GlideHQ/TxFilter.cpp
../../src/GlideHQ/TxFilter.cpp:32:10: fatal error: 'thread' file not found
#include <thread>
          ^
1 error generated.
gmake: *** [_obj/GlideHQ/TxFilter.o] Error 1

That header does exist with GCC 4.6 / 4.8 and is new with C++11.

include/c++/${V}/thread

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to