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
attempted to compile ACOTSP-1.03 using make, but encountered multiple definition errors during linking. The errors indicate that the variables n and distance are defined in multiple object files (acotsp.o, TSP.o, utilities.o, ants.o, InOut.o, ls.o).
jyoti@jyoti:/tuning/ACOTSP-1.03$ cd
jyoti@jyoti:$ cd ./tuning/ACOTSP-1.03
jyoti@jyoti:~/tuning/ACOTSP-1.03$ make
cc acotsp.o TSP.o utilities.o ants.o InOut.o dos_timer.o ls.o parse.o -lm -o acotsp
/usr/bin/ld: TSP.o:(.bss+0x238): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: TSP.o:(.bss+0x230): 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+0x200): multiple definition of n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: InOut.o:(.bss+0x1f8): 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: *** [: acotsp] Error 1
since make fails, the acotsp executable is not generated, preventing me from running it.
The text was updated successfully, but these errors were encountered:
attempted to compile ACOTSP-1.03 using make, but encountered multiple definition errors during linking. The errors indicate that the variables n and distance are defined in multiple object files (acotsp.o, TSP.o, utilities.o, ants.o, InOut.o, ls.o).
jyoti@jyoti:
/tuning/ACOTSP-1.03$ cd$ cd ./tuning/ACOTSP-1.03jyoti@jyoti:
jyoti@jyoti:~/tuning/ACOTSP-1.03$ make
cc acotsp.o TSP.o utilities.o ants.o InOut.o dos_timer.o ls.o parse.o -lm -o acotsp
/usr/bin/ld: TSP.o:(.bss+0x238): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: TSP.o:(.bss+0x230): 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+0x200): multiple definition of
n'; acotsp.o:(.bss+0x8): first defined here /usr/bin/ld: InOut.o:(.bss+0x1f8): 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: *** [: acotsp] Error 1
since make fails, the acotsp executable is not generated, preventing me from running it.
The text was updated successfully, but these errors were encountered: