Page 1 of 1

make error "undefined reference to 'strtok_r'

Posted: 29 Aug 2016 12:51
by KimGwanyoung
Hi all.

I am trying make vlc for win32.
I finished configuring of the vlc building for win32(https://wiki.videolan.org/Win32Compile/ 6.2 configure).
And I executed the "make" instruction.

But I met errors as follows.
/home/gykim/winvlc/vlc-2.2.4/contrib/i686-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `ZN4x26512parseCpuNameEPKcRb':
/home/jb/vlc-2.2/contrib/mingw/x265/source/common/param.cpp:775: undefined reference to `strtok_r'
/home/gykim/winvlc/vlc-2.2.4/contrib/i686-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `ZN4x26515parseLambdaFileEP10x265_param':
/home/jb/vlc-2.2/contrib/mingw/x265/source/common/param.cpp:1332: undefined reference to `strtok_r'
collect2: error: ld returned 1 exit status


My version.
OS : ubuntu 14.04 LTS
vlc source : 2.2.4 release version.
contrib version : vlc-contrib-i686-w64-mingw32-20160121.tar.bz2 (The latest version is 64bits binary. So I received it from "https://download.videolan.org/videolan/ ... 4-mingw32/")

What should I do?
Why does the path "/home/jb/vlc-2.2" come ?

Best regards,
Gwanyoung Kim.

Re: make error "undefined reference to 'strtok_r'

Posted: 23 Sep 2016 14:50
by Jean-Baptiste Kempf
Either build your contribs, or update mingw.