I haven't compiled oiiotool myself yet, but SwitchToThread is supposed
to be defined in Windows.h.
Thread.h includes windows.h if _MSC_VER is defined. Are you using
Visual Studio or something else to build?
Also, I believe SwitchToThread is available only on XP and higher, so
you may need to define _WIN32_WINNT to at least 0x0400 if it isn't
already.


On Fri, Oct 19, 2012 at 10:52 AM, Paul Hudson <[email protected]> wrote:
>
> Hi all,
> I am attempting to compile oiiotool for Win64.  This is the error currently 
> holding me back.  Anyone know how to fix this?
>
> ..\oiio\src\include\thread.h(313) : error C3861: 'SwitchToThread': identifier 
> not found
>
>
> Thanks,
> Paul
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to