From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54398 invoked by alias); 9 Nov 2018 08:20:31 -0000 Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org Received: (qmail 54388 invoked by uid 89); 9 Nov 2018 08:20:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=BAYES_05,KAM_COUK,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=H*F:U*john, HTo:U*pthreads-win32, H*Ad:U*pthreads-win32, H*UA:6.1 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Nov 2018 08:20:30 +0000 Received: from [192.168.1.65] ([51.6.11.24]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mo6WJ-1fk6WO14iB-00pf6n; Fri, 09 Nov 2018 09:20:27 +0100 Message-ID: <5BE5434A.6040405@creativepost.co.uk> Date: Fri, 09 Nov 2018 08:20:00 -0000 From: John Emmas User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pthreads-win32@sourceware.org Subject: Re: Unresolved external symbol __imp_pthread_mutex_unlock References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018/txt/msg00007.txt.bz2 On 08/11/2018 21:53, Josh Henrie wrote: > Why is the linker trying to resolve the functions with the prefix `__imp_`? > What do I need to do to resolve the symbols? > The prefix '__imp_' signifies that your main project (i.e. not the pthreads_win32 project) is expecting to import those symbols from a DLL (but it found a static link lib, rather than the DLL link lib that it was expecting). Basically, there's a mismatch between your main project and pthreads_win32. Most likely, your main project also needs to #define PTW32_STATIC_LIB (so that BOTH projects expect a static lib). Hope that helps, John