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
Compilation issue on 20.04 #49
Comments
I solved it by downgrading to gcc/g++9, I was using gcc/g++ 11. Please feel free to close. |
hello i downgraded to gcc/g++ version 9, but the same error continues to occur. is there any other way,...? thanks |
@romaster93 can you give more details ? Did you set the gcc/g++-9 as the default ? What is the result of |
gcc -v result : Using built-in specs. but still cannot build ..... :( |
Hi ,
I go ahead with the recommendation of "-std=c++14" change in the cmakes, and installed dw. All is compiling other than lkh_tsp_solver. I am getting the following error.
usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xa0): multiple definition of PatchingCExtended; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xa0): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xa4): multiple definition of PatchingARestricted; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xa4): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xa8): multiple definition of PatchingAExtended; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xa8): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xac): multiple definition of MoorePartitioning; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xac): first defined here /usr/bin/ld: CMakeFiles/lkh_tsp_solver.dir/src/SolveCompressedSubproblem.c.o:(.bss+0xb0): multiple definition of KMeansPartitioning; CMakeFiles/lkh_tsp_solver.dir/src/Activate.c.o:(.bss+0xb0): first defined here
I did take a look at RACER repo, where they recommend installing LKH-3.0.6 on the system-wide. I tried to compile the LKH-3.0.6 and I get the same error. Also checked LKH-3.0.5, which also does not compile on Ubuntu20.04, LKH-3.0.7 and LKH-3.0.8 compiles but there are some changes on the APIs, so not sure how to add that part. Any recommendations?
The text was updated successfully, but these errors were encountered: