Skip to content

makefile does not compile #1

Description

@pietro-sillano

Hey, sorry to bother you but I tried to compile the code using the standard makefile and I get:

cc -Wall -O2 -I../util -std=c99   -c -o timer.o ../util/timer.c 
cc -c  efpol_lib.c -o efpol_lib_lin.o -Wall -O2 -I../util -std=c99 -DPOL_TYPE=POL_LIN 
cc -c  efpol_meas.c -o efpol_meas_lin.o -Wall -O2 -I../util -std=c99 -DPOL_TYPE=POL_LIN
cc -lpthread -lm  efpol_lin.o efpol_init_lin.o efpol_io_lin.o timer.o efpol_lib_lin.o efpol_meas_lin.o   -o efpol_lin
/usr/bin/ld: efpol_init_lin.o:(.bss+0x1a0): multiple definition of `tab'; efpol_lin.o:(.bss+0x1a0): first defined here
/usr/bin/ld: efpol_init_lin.o:(.bss+0x14ba0): multiple definition of `cfg'; efpol_lin.o:(.bss+0x14ba0): first defined here
/usr/bin/ld: efpol_init_lin.o:(.bss+0x0): multiple definition of `res'; efpol_lin.o:(.bss+0x0): first defined here

Could you think that it depends on compiler ?
I am using gcc version 12.1.0 (GCC) on Linux (Arch)

p.s. I know you don't maintain the code and working in this field anymore, I just wanna know if this makefile is supposed to compile 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions