Gcc Ld Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have /usr/bin/ld: cannot find -lstdc++ ubuntu Meta Discuss the workings and policies of this site About Us
Ld Cannot Find Lz
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads gcc ld cannot find -lc with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
"/usr/bin/ld: Cannot Find -lc"
just like you, helping each other. Join them; it only takes a minute: Sign up gcc - /usr/bin/ld error: cannot find
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of
Usr Bin Ld Cannot Find Lgcc_s
this site About Us Learn more about Stack Overflow the company Business
/usr/bin/ld Cannot Find Library
Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question usr bin ld cannot find caffe _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's http://stackoverflow.com/questions/19737996/gcc-usr-bin-ld-error-cannot-find-library-in-usr-local-lib-though-ldconfig how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Gcc : ld cannot find -lc up vote 2 down vote favorite I'm trying to compile a simple program with gcc main.c and gcc throws me the following error /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status How can I http://unix.stackexchange.com/questions/228886/gcc-ld-cannot-find-lc resolve this problem ? I'm on Linux Mint 17.2, gcc version is 4.8.4 gcc share|improve this question edited Sep 12 '15 at 10:35 Sari 533 asked Sep 10 '15 at 18:59 Bilow 5818 2 does apt-get install build-essential want to install lots of things? –casey Sep 10 '15 at 19:11 It installed 9 packages and now it works perfectly ! Thank you so much ! –Bilow Sep 10 '15 at 22:02 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted ld is the linker, i.e. the program that ties together the code that you wrote with the preexisting library code. -lc means the library which is stored in the file libc.a and which is linked because the option -lc is passed to the linker. libc is the C standard library, which is automatically linked in every program unless you explicitly request that it isn't (which is rarely done except for such things as compiling libc itself, since you pretty much can't do anything without libc, and you definitely can't do anything that's vaguely portable). You need the package that provides libc.a. You can
program is to run ld. ld accepts Linker Command Language files written in a superset of AT&T 's Link Editor Command Language syntax, to provide explicit and total control over the linking https://linux.die.net/man/1/ld process. This man page does not describe the command language; see the ld entry in "info" for full details on the command language and on other aspects of the GNU linker. This version of ld uses the general purpose BFD libraries to operate on object files. This allows ld to read, combine, and write object files in many different formats---for example, COFF or "a.out". Different formats may be linked together to produce cannot find any available kind of object file. Aside from its flexibility, the GNU linker is more helpful than other linkers in providing diagnostic information. Many linkers abandon execution immediately upon encountering an error; whenever possible, ld continues executing, allowing you to identify other errors (or, in some cases, to get an output file in spite of the error). The GNU linker ld is meant to cover a broad range of situations, and to ld cannot find be as compatible as possible with other linkers. As a result, you have many choices to control its behavior. Options The linker supports a plethora of command-line options, but in actual practice few of them are used in any particular context. For instance, a frequent use of ld is to link standard Unix object files on a standard, supported Unix system. On such a system, to link a file "hello.o": ld -o