configure: /bin/ld: cannot find -lmingwthrd (Win32/Mingw32) #3617

issue coincapsig opened this issue on February 2, 2014
  1. coincapsig commented at 1:11 PM on February 2, 2014: none

    I am getting the following error when compiling in Windows 7 using a brand new version of MinGW. Here is what the config.log reads

    configure:6514: checking for main in -lmingwthrd
    configure:6533: g++ -o conftest.exe -g -O2 -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter  -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS  conftest.cpp -lmingwthrd   >&5
    /bin/ld: cannot find -lmingwthrd
    collect2: ld returned 1 exit status
    configure:6533: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "Bitcoin Core"
    | #define PACKAGE_TARNAME "bitcoin"
    | #define PACKAGE_VERSION "0.9.0"
    | #define PACKAGE_STRING "Bitcoin Core 0.9.0"
    | #define PACKAGE_BUGREPORT "info@bitcoin.org"
    | #define PACKAGE_URL ""
    | /* end confdefs.h.  */
    | 
    | 
    | int
    | main ()
    | {
    | return main ();
    |   ;
    |   return 0;
    | }
    configure:6542: result: no
    configure:6552: error: lib missing
    

    I can confirm the library is in F:/MinGW/lib/libmingwthrd.a, maybe my version of MSYS is too new? I am using MinGW 0.6.2 beta.

  2. laanwj commented at 2:24 PM on February 2, 2014: member

    Probably you need to pass the linker path using ./configure ... LDFLAGS="-Lf:/MinGW/lib". On windows it's impossible to do any intelligent detection of packages/directories.

  3. laanwj closed this on Feb 17, 2014

  4. MarcoFalke locked this on Sep 8, 2021
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me