# HG changeset patch # User J. Ali Harlow # Date 1429704582 -3600 # Node ID 271bb9e6e10fa97de0bd1a9052605b79eb68bdb3 # Parent 1ca7a49838e90e70c1c189e792c2374e7b097ca2 Add -lole32 to link libraries. This fixes a problem when compiling with mingw-headers version 3.3 where the use of SHGetFolderPath() expands to a call to CoTaskMemFree() which is defined in libole32.dll: /usr/x86_64-w64-mingw32/sys-root/mingw/include/shobjidl.h:29954: undefined reference to `__imp_CoTaskMemFree' diff -r 1ca7a49838e9 -r 271bb9e6e10f configure.ac --- a/configure.ac Thu Nov 13 11:30:27 2014 +0000 +++ b/configure.ac Wed Apr 22 13:09:42 2015 +0100 @@ -83,7 +83,7 @@ case $host_os in *mingw*) AC_DEFINE([MSWIN_API], 1, [Define to 1 to use Microsoft Windows native API.]) - EXTRA_LIBS='-lshlwapi -lshell32 -lws2_32' + EXTRA_LIBS='-lshlwapi -lshell32 -lws2_32 -lole32' mswin_api=yes;; *) mswin_api=no;; esac