Homebrew Question Compiling error using msys and switch-libjpeg-turbo

gking53

Member
OP
Newcomer
Joined
Jul 10, 2018
Messages
7
Trophies
0
Age
25
XP
293
Country
Canada
Hey, I'm decently new to the homebrew scene, wondering if someone can help me out. Trying to compile a program using switch-libjpeg-turbo from the pacman install, yet when I include turbojpeg.h and try to compile, I'm getting an undefined reference error for tjDecompress2 and tjInitDecompress. I've been using the homebrew template from the tutorial posted here awhile ago and it works for everything libnx so far. I don't have alot of experience with make files, usually let VS take care of everything when programming in school :D, i believe this is just an error with the compiler not being able to link the library of libjpeg-turbo with my call for it, but I have no idea how to fix it. Any help would be great! Thanks!
 

Attachments

  • error.png
    error.png
    6.7 KB · Views: 195

gking53

Member
OP
Newcomer
Joined
Jul 10, 2018
Messages
7
Trophies
0
Age
25
XP
293
Country
Canada
Finally figured it out by leaning basics of make files/linker, added the library name in the libs and everything worked out, for reference it was -lturbojpeg in the libs line
 
  • Like
Reactions: binkinator

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: 📚 🗒️ ✏️ 🤓 +1