Skip to content

i use libtorch 1.3.0 cuda 10.1 in linux, Error when compile, Can you tell me how to solve it #46

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

Open
PyNancy opened this issue Jun 22, 2020 · 1 comment

Comments

@PyNancy
Copy link

PyNancy commented Jun 22, 2020

CMakeFiles/yolo-app.dir/main.cpp.o: In function main': main.cpp:(.text+0x1012): multiple definition of main'
CMakeFiles/yolo-app.dir/detect_cuda_version.cc.o:detect_cuda_version.cc:(.text+0x0): first defined here
CMakeFiles/yolo-app.dir/detect_cuda_compute_capabilities.cpp.o: In function main': detect_cuda_compute_capabilities.cpp:(.text+0x0): multiple definition of main'
CMakeFiles/yolo-app.dir/detect_cuda_version.cc.o:detect_cuda_version.cc:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
CMakeFiles/yolo-app.dir/build.make:233: recipe for target 'yolo-app' failed
make[3]: *** [yolo-app] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/yolo-app.dir/all' failed
make[2]: *** [CMakeFiles/yolo-app.dir/all] Error 2
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/yolo-app.dir/rule' failed
make[1]: *** [CMakeFiles/yolo-app.dir/rule] Error 2
Makefile:118: recipe for target 'yolo-app' failed
make: *** [yolo-app] Error 2

@WANGCHAO1996
Copy link

CMakeFiles/yolo-app.dir/build.make:81: recipe for target 'CMakeFiles/yolo-app.dir/Darknet.cpp.o' failed
make[2]: *** [CMakeFiles/yolo-app.dir/Darknet.cpp.o] Error 1
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/yolo-app.dir/all' failed
make[1]: *** [CMakeFiles/yolo-app.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2
你好,我也遇到了问题请问怎么解决的

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