Cuba library: Undefined symbols for architecture x86_64

126 Views Asked by At

I'm working on a M1 and trying to compile a cpp code with libquadmath and the Cuba library. On the site (http://www.feynarts.de/cuba/) is said that I can easily make use of GNU C compiler, problem is (and here I'm guessing) I get the following error I'm not sure why.

ignoring file ./lib/libcuba.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_llVegas", referenced from:
      _main in ccucELGn.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

Any guesses? Thanks everyone

0

There are 0 best solutions below