Hot answers tagged

10 votes
Accepted

What does the linker do?

The #include pre-processor directive does not copy the code from libraries to your source code. It deals with header files (i.e., the ones that end with the .h extension). In the pre-processing ...
user avatar
  • 17.4k
8 votes

What does the linker do?

Well, this is a really good question that I also( at a point of time) googled up and found this image, which is enough to explain everything So, you can see in this image that the code is first pre ...
user avatar
  • 1,146
1 vote

clang-7: error: linker command failed with exit code 1 (use -v to see invocation

Try saying make then the name u want ur file to be called ex- make hello in the terminal
user avatar
1 vote
Accepted

linker fails with exit code 1 in pset6

Because dictionary does not have int main () The purpose of dictionary.c is to hold the functions that are called upon by speller.c. Thus clang returns this error. dictionary.h declares all the ...
user avatar
  • 171

Only top scored, non community-wiki answers of a minimum length are eligible