Homebrew library compile error

  • Thread starter Thread starter elle-p
  • Start date Start date
  • Views Views 284
  • Replies Replies 2

elle-p

Member
Newcomer
Joined
Aug 28, 2025
Messages
13
Reaction score
2
Trophies
0
Age
20
XP
57
Country
United Kingdom
I'm trying to make some ds homebrew. I'm using NFLib and compiling with BlocksDS. I've managed to get it to mostly compile, except for a singular error:

C:/msys64/opt/wonderful/toolchain/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/15.1.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lnflib: No such file or directory

This is probably to do with my makefile, which has this line:

LIBS := -lNE -lnflib -ldswifi9 -lnds9

Removing the -lnflib creates a lot of errors to do with undefined references to the NFLib functions.

What can I do to fix this error?
 
Try and add the environment variables to the end of your C:/msys64/home/-USER-/.bashrc

Below the line
# alias cd=cd_func

Code:
# alias cd=cd_func

# blocksds
export WONDERFUL_TOOLCHAIN=/opt/wonderful
export PATH=/opt/wonderful/bin:$PATH
export BLOCKSDS=/opt/wonderful/thirdparty/blocksds/core
export BLOCKSDSEXT=/opt/wonderful/thirdparty/blocksds/external
(ENTER / empty line)

Close and reopen the msys shell and install the nflib (again)
wf-pacman -Sy blocksds-nflib


blocksds-bashrc.jpg
 
Last edited by draftguy123,
I hadn't done that, so thank you! That wasn't just the problem; it was also with where I was directing the libs to in the makefile. But that problem's fixed now, so thanks again.
 
  • Like
Reactions: draftguy123

Site & Scene News

Popular threads in this forum