Skip to content

Commit 1663c4d

Browse files
Junhewk Kimclaude
authored andcommitted
Fix Windows linking: use -lmecab instead of -llibmecab
MinGW's -l flag prepends 'lib', so -llibmecab searches for liblibmecab.dll.a which doesn't exist. Use -lmecab to correctly find libmecab.dll. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ec03404 commit 1663c4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Makevars.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ MECAB_DL_URL = https://github.com/junhewk/RcppMeCab/releases/download/0.0.1.0/$(
3232
## Compiler / linker flags with RcppParallel library
3333
PKG_CPPFLAGS += -I../inst/include -DBOOST_NO_AUTO_PTR
3434
PKG_CXXFLAGS += -DRCPP_PARALLEL_USE_TBB=1 -DDLL_IMPORT -DSTRICT_R_HEADERS -Wno-parentheses -Wno-nonnull
35-
PKG_LIBS += -L$(MECAB_LIBS) $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript.exe" -e "RcppParallel::RcppParallelLibs()") -lm -llibmecab
35+
PKG_LIBS += -L$(MECAB_LIBS) $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript.exe" -e "RcppParallel::RcppParallelLibs()") -lm -lmecab
3636

3737
all: libmecab $(SHLIB)
3838

0 commit comments

Comments
 (0)