Home >Backend Development >Golang >Why Can\'t I Compile a Cgo Library on Cygwin64 and How Do I Fix the \'-lmingw32\' Error?
Error: "ld: cannot find -lmingw32" When Compiling Cgo Library on Cygwin64
Problem:
While attempting to compile a cgo library (specifically github.com/mattn/go-sqlite3) on Windows using Cygwin64, the following error occurs:
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lmingwex /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lmingw32
Possible Causes:
Solution:
After searching for alternative methods, the issue was resolved by:
The above is the detailed content of Why Can\'t I Compile a Cgo Library on Cygwin64 and How Do I Fix the \'-lmingw32\' Error?. For more information, please follow other related articles on the PHP Chinese website!