I am making a ffmpeg program with cgo. I wanna statically link ffmpeg into the program.
I write these in cgo
/*
#cgo CFLAGS: -g -Wall -I./include
#cgo LDFLAGS: -L${SRCDIR}/lib -llibavformat -llibavcodec -llibavutil -llibavdevice -llibavfilter -llibswresample -llibswscale
#include "ffmpeg.h"
*/
import "C"
It builds successfully. But it will report "mssing avxxx.dll" while running. I guess it is compiled via dynamic linking.