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

linker error in building a minimal C++ application #8

Open
ly1231cn opened this issue Jan 6, 2020 · 0 comments
Open

linker error in building a minimal C++ application #8

ly1231cn opened this issue Jan 6, 2020 · 0 comments

Comments

@ly1231cn
Copy link

ly1231cn commented Jan 6, 2020

Hi there,
I tried to build a minimal C++ based on the latest nightly build of libtorch but got the following errors. Can someone help?
/lib/../lib64/crt1.o: In function _start': (.text+0x20): undefined reference to main'
.../libtorch_nightly/lib/libtorch.so: undefined reference to lgammaf@GLIBC_2.23' .../libtorch_nightly/lib/libtorch.so: undefined reference to lgamma@GLIBC_2.23'
collect2: error: ld returned 1 exit status
gmake[3]: *** [stylegan] Error 1
gmake[2]: *** [CMakeFiles/mymodel.dir/all] Error 2
gmake[1]: *** [CMakeFiles/mymodel.dir/rule] Error 2
gmake: *** [mymodel] 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

1 participant