[cfe-dev] Linker command failed with exit code 1

Arya M Sankar via cfe-dev cfe-dev at lists.llvm.org
Thu Dec 22 04:58:24 PST 2016


Hi,
   I want to compile a simple "hello world" c program for aosp_x86_64 using
the clang compiler


*command used*clang -target x86_64-unknown-unknown-linux-android hello.c


*Error generated*/usr/bin/ld: cannot find crtbegin_dynamic.o: No such file
or directory
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

How can I compile this successfully for x86_64 target

--
Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161222/d6f78ff8/attachment.html>


More information about the cfe-dev mailing list