libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
535 stars 304 forks source link

cannot build under msys2 (mingw64), implicit declaration of function '_spawnv' #136

Closed mexmer closed 5 years ago

mexmer commented 5 years ago
make[1]: Entering directory '/d/Source/github/iphone/libplist/tools'
  CCLD     plistutil.exe
./.libs/lt-plistutil.c: In function 'main':
./.libs/lt-plistutil.c:319:16: warning: implicit declaration of function '_spawnv'; did you mean 'spawnv'? [-Wimplicit-function-declaration]
   rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
                ^~~~~~~
                spawnv
mexmer commented 5 years ago

ok, looks solution was to use mingw toolchain, instead of devel toolchain

pacman -S mingw-w64-x86_64-toolchain