mwageringel / fgb_sage

A Sage interface for FGb (Gröbner basis computations)
MIT License
30 stars 0 forks source link

I have no idea how to compile FGb C interface #6

Closed ZM-J closed 6 months ago

ZM-J commented 7 months ago

Below is what I got:

$ make
g++ -m64   -o main main.o gb1.o gb2.o -Lx64 -lfgb -lfgbexp -lgb -lgbexp -lminpoly -lminpolyvgf -lgmp -lm -fopenmp
/usr/bin/ld: x64/libgb.a(admin.o):(.bss+0x210): multiple definition of `log_output'; gb1.o:(.bss+0x8): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:18: main] Error 1

P.S.: I downloaded call_FGb in the official website.

ZM-J commented 7 months ago

My OS is Ubuntu 22.04 LTS as WSL

ZM-J commented 6 months ago

So there's no need to compile FGb C interface by yourself. Just follow the installation guide of fgb_sage.

If you have problem downloading call_fgb zip when running sage setup.py test, just download this zip file manually and put it into the corresponding folder. sage setup.py test will do everything related to the C interface compilation.