From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82054 invoked by alias); 8 Nov 2018 21:54:04 -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 82038 invoked by uid 89); 8 Nov 2018 21:54:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=HTo:U*pthreads-win32, H*Ad:U*pthreads-win32, HX-Received:sk:v6-v6mr, H*c:alternative X-HELO: mail-yb1-f181.google.com Received: from mail-yb1-f181.google.com (HELO mail-yb1-f181.google.com) (209.85.219.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Nov 2018 21:54:01 +0000 Received: by mail-yb1-f181.google.com with SMTP id 131-v6so8976351ybe.12 for ; Thu, 08 Nov 2018 13:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=01Ap81U4ywolZSxFjWgKsyVFEkysITJm4XalLQk7Kbw=; b=YzE093vj2/W5G7W1pHJ3bFGF8yxmejQU/LlQ52kkddBUJ7h/VPMg34UWDyFZHNqf2C jIV8NqlY1z1IKnDERCDqkFUscEPFkEGnVG8SX5n+hRIzpd6AKsooYItRAy8DqD/jdvo3 Z0Z6W3qs5OwBSnRdy89U8CddA6ycQYL+Cluv512q3b3A8xsVLf3yYhPSK+vu4iHD8pkb Oj7xd+4lrnU7meq0u808qiOddum/sXPm0BndL7Ww/IlWVEO9kIQpTwNyrtlqtrz4TboG 5SsomIW2EHbLJuq2k2W2zZanbjtXnbfyBO2WGzrYCqeVYjuabIJdL63lHtz2vbJlHFXi hqbg== MIME-Version: 1.0 From: Josh Henrie Date: Thu, 08 Nov 2018 21:54:00 -0000 Message-ID: Subject: Unresolved external symbol __imp_pthread_mutex_unlock To: pthreads-win32@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018/txt/msg00005.txt.bz2 I have compiled pthreads-win32 as a static library using VS 2008 with the following preprocessor definitions: _DEBUG _WIN32_WCE=0x600 UNDER_CE WINCE DEBUG _LIB ARM _ARM_ _UNICODE UNICODE HAVE_CONFIG_H NEED_PROCESS_AFFINITY_MASK NEED_ERRNO __PTW32_RC_MSC __PTW32_ARCHARM __PTW32_STATIC_LIB However, when I try to link it with my project I get the following linker errors: error LNK2001: unresolved external symbol __imp_pthread_mutex_unlock error LNK2001: unresolved external symbol __imp_pthread_mutex_lock error LNK2001: unresolved external symbol __imp_pthread_self error LNK2001: unresolved external symbol __imp_pthread_cond_signal error LNK2001: unresolved external symbol __imp_pthread_join error LNK2001: unresolved external symbol __imp_pthread_create error LNK2001: unresolved external symbol __imp_pthread_equal error LNK2019: unresolved external symbol __imp_pthread_cond_timedwait error LNK2019: unresolved external symbol __imp_pthread_cond_broadcast When I use `dumpbin /symbols` on the static library I see the following symbols: 4BE 00005CC0 SECT8 notype () External | pthread_mutex_unlock 44D 000050B4 SECT8 notype () External | pthread_mutex_lock 399 00004428 SECT8 notype () External | pthread_self 2E6 0000359C SECT8 notype () External | pthread_cond_signal 83D 0000A110 SECT8 notype () External | pthread_join 332 00003D50 SECT8 notype () External | pthread_create 377 0000423C SECT8 notype () External | pthread_equal 32B 00003D00 SECT8 notype () External | pthread_cond_timedwait 302 000038C0 SECT8 notype () External | pthread_cond_broadcast Why is the linker trying to resolve the functions with the prefix `__imp_`? What do I need to do to resolve the symbols?