-
-
Notifications
You must be signed in to change notification settings - Fork 307
Description
win11,
go build , error :
/x86_64-14.2.0-release-posix-seh-ucrt-rt_v12-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\xizhi\AppData\Local\Temp\go-link-3663265875\000006.o: in function __tcf_0': D:/goproject/pkg/mod/github.com/otiai10/gosseract/[email protected]/tessbridge.cpp:227:(.text+0x708): undefined reference to tesseract::TessBaseAPI::~TessBaseAPI()'
tesseract and leptonica ,i use vcpkg install .
this is my go env config:
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-ID:/vcpkg/installed/x64-windows/include/tesseract -ID:/vcpkg/installed/x64-windows/include/leptonica
set CGO_CPPFLAGS=-ID:/vcpkg/installed/x64-windows/include -ID:/vcpkg/installed/x64-windows/include/tesseract -ID:/vcpkg/installed/x64-windows/include/leptonica
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-LD:/vcpkg/installed/x64-windows/lib -ltesseract -lleptonica
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\xizhi\AppData\Local\Temp\go-build1405540562=/tmp/go-build -gno-record-gcc-switches
so,i just come from main to v2.4.1 ,new problem is show。