It worked the first time I compiled it. But I want to change some fixed parameters in frontend. That is, I want to test the efficiency of PSI when n=2^20, so I plan to rebuild it. Then I rerun “python3 build.py” the following error occurred. Can you tell me why? Thank you very much!
/usr/bin/ld: CMakeFiles/frontend.dir/main.cpp.o: in function main': main.cpp:(.text.startup+0x0): multiple definition ofmain'; CMakeFiles/frontend.dir/build/CMakeFiles/3.24.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: [frontend/CMakeFiles/frontend.dir/build.make:137:frontend/frontend] error 1
make[1]: [CMakeFiles/Makefile2:187:frontend/CMakeFiles/frontend.dir/all] error 2
make: *** [Makefile:136:all] error 2
It worked the first time I compiled it. But I want to change some fixed parameters in frontend. That is, I want to test the efficiency of PSI when n=2^20, so I plan to rebuild it. Then I rerun “python3 build.py” the following error occurred. Can you tell me why? Thank you very much!
/usr/bin/ld: CMakeFiles/frontend.dir/main.cpp.o: in function
main': main.cpp:(.text.startup+0x0): multiple definition of
main'; CMakeFiles/frontend.dir/build/CMakeFiles/3.24.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text.startup+0x0): first defined here collect2: error: ld returned 1 exit status make[2]: [frontend/CMakeFiles/frontend.dir/build.make:137:frontend/frontend] error 1 make[1]: [CMakeFiles/Makefile2:187:frontend/CMakeFiles/frontend.dir/all] error 2 make: *** [Makefile:136:all] error 2