Ld: archive member '/' not a mach-o file

I am using clang++ to to compile and got the following error:

ld: archive member ‘/’ not a mach-o file in ‘/Users/user/Documents/accountable-robust-mpc-code/SimpleOT/libsimpleot.a’

I am working on a MacBook Pro with an Intel i5 processor running macOS Sonoma 14.2.1. I would greatly appreciate any help with this error.