You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On executing make file lot of redefinition of variables
gcc -ansi acotsp.o TSP.o utilities.o ants.o InOut.o timer.o parse.o ls.o -o acotsp -O -lm
/usr/bin/ld: TSP.o:(.bss+0x100): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: TSP.o:(.bss+0xf8): multiple definition of distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: utilities.o:(.bss+0x0): multiple definition of distance'; acotsp.o:(.bss+0x0): first defined here /usr/bin/ld: utilities.o:(.bss+0x8): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here
/usr/bin/ld: ants.o:(.bss+0xc8): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: ants.o:(.bss+0xc0): multiple definition of distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: InOut.o:(.bss+0x160): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: InOut.o:(.bss+0x158): multiple definition of distance'; acotsp.o:(.bss+0x0): first defined here
/usr/bin/ld: ls.o:(.bss+0x18): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: ls.o:(.bss+0x10): multiple definition of distance'; acotsp.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:3: acotsp] Error 1
The text was updated successfully, but these errors were encountered:
On executing make file lot of redefinition of variables
gcc -ansi acotsp.o TSP.o utilities.o ants.o InOut.o timer.o parse.o ls.o -o acotsp -O -lm
/usr/bin/ld: TSP.o:(.bss+0x100): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: TSP.o:(.bss+0xf8): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here/usr/bin/ld: utilities.o:(.bss+0x0): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here /usr/bin/ld: utilities.o:(.bss+0x8): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here/usr/bin/ld: ants.o:(.bss+0xc8): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: ants.o:(.bss+0xc0): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here/usr/bin/ld: InOut.o:(.bss+0x160): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: InOut.o:(.bss+0x158): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined here/usr/bin/ld: ls.o:(.bss+0x18): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: ls.o:(.bss+0x10): multiple definition of
distance'; acotsp.o:(.bss+0x0): first defined herecollect2: error: ld returned 1 exit status
make: *** [Makefile:3: acotsp] Error 1
The text was updated successfully, but these errors were encountered: