[x265] Build failure on MinGW GCC 4.7.1 x64, revision 288a83d
Steve Borho
steve at borho.org
Mon Mar 3 20:55:23 CET 2014
On Mon, Mar 3, 2014 at 4:13 AM, Mario *LigH* Rohkrämer <contact at ligh.de> wrote:
> Am 03.03.2014, 08:29 Uhr, schrieb Nikos Barkas <nikbar2004 at yahoo.com>:
>
>
>> Building tip revision 288a83d fails with this message on MinGW x64:
>>
>> c:/x265/source/common/param.cpp: In function 'int x265::parseCpuName(const
>> char*, bool&)':
>> c:/DriveD/x265Project/x265/source/common/param.cpp:738:59: error:
>> 'strtok_s' was not declared in this scope
>> make[2]: *** [common/CMakeFiles/common.dir/param.cpp.obj] Error 1
>> make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Best regards
>> Nikos
>
>
> Same for GCC 4.8.2 Win32 and cross Win64. May require another include,
> possibly excluded by a wrong compiler-dependent condition?
Apparently strtok_s support in MinGW is a very recent development, and
not every Windows release is guaranteed to have it, so I've just sent
a patch to the ML that looks for strtok_r. if found it uses it
directly, else it uses an internal version. Can the two of you test
this on your build setups?
--
Steve Borho
More information about the x265-devel
mailing list