Libs installed but get undefined reference errors

Software that I had running several years ago will no longer link. The package is the graphics portion of https://github.com/vygr/C-PCB. It depends on glfw3, which is installed as (glfw-git 3.3.r749.gdd8a678a-1).

Example:

ecomer@asrock C-PCB]$ make
c++ -O2 --std=c++14 c_pcb.cpp router.cpp layer.cpp mymath.cpp -oc_pcb
c++ -O2 --std=c++14 c_pcb_dsn.cpp -oc_pcb_dsn
c++ -O2 --std=c++14 `pkg-config --cflags glfw3` c_pcb_view.cpp mymath.cpp -oc_pcb_view `pkg-config --static --libs glfw3` -D GL_SILENCE_DEPRECATION
/usr/bin/ld: /tmp/cctaNmn8.o: warning: relocation against `__glewGetUniformLocation' in read-only section `.text.startup'
/usr/bin/ld: /tmp/cctaNmn8.o: in function `compile_shader(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
c_pcb_view.cpp:(.text+0x52f): undefined reference to `__glewCreateShader'
/usr/bin/ld: c_pcb_view.cpp:(.text+0x54e): undefined reference to `__glewShaderSource'
/usr/bin/ld: c_pcb_view.cpp:(.text+0x556): undefined reference to `__glewCompileShader'

Linux asrock 5.19.16-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Oct 15 13:37:00 UTC 2022 x86_64 GNU/Linux

Also installed:

glew 2.2.0-5

Wherever those functions are defined they are eluding me.

That is an AUR package that you might have to rebuild and then recompile your software … Or use glfw-wayland or glfv-x11 from official repositories and then recompile your software …