Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in irace #81

Closed
jyotiTec opened this issue Feb 4, 2025 · 1 comment
Closed

Issues in irace #81

jyotiTec opened this issue Feb 4, 2025 · 1 comment

Comments

@jyotiTec
Copy link

jyotiTec commented Feb 4, 2025

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.

@jyotiTec jyotiTec closed this as completed Feb 4, 2025
@MLopez-Ibanez
Copy link
Owner

Hi, I have updated the user-guide: https://mlopez-ibanez.github.io/irace/irace-package.pdf

@jyotiTec jyotiTec reopened this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants