I have an error when building a Golang project
panic: Failed to load dbcapi.dll: The specified module could not be found.
goroutine 1 [running]: syscall.MustLoadDLL(0x8603bb, 0xa, 0x1) C:/Go/src/syscall/dll_windows.go:77 +0x76 Process finished with exit code 2
May be some help there :
You probably have to download the .dll and set it to the right path.
EDIT:
The first proposition of the link above is to following this steps :
When you install software that uses the dbcapi.dll dependency, the software should automatically register the file for you. In some cases your DLL file may not register properly, and as a result, will provide a "dbcapi.dll not registered" error. Fortunately, you can use a built-in utility called "Microsoft Register Server" (regsvr32.exe) to re-register your dbcapi.dll file.
How to re-register dbcapi.dll from an elevated command prompt (Windows XP, Vista, 7, 8, and 10):
- Click the Start button.
- Type "command" in the search box... DO NOT hit ENTER yet!
- While holding CTRL-Shift on your keyboard, hit ENTER.
- You will be prompted with a permission dialog box.
- Click Yes
- Type the following command: regsvr32 /u dbcapi.dll
- Hit ENTER. This will UN-REGISTER your file
- Type the following command: regsvr32 /i dbcapi.dll.
- Hit ENTER. This will RE-REGISTER your file
- Close the command prompt window
- Re-start the program associated with dbcapi.dll error.
Can't copy-past all the other solutions, it will be too long, so try it first.