Questions tagged [linker]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

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

I just watched the C lecture the other day, and tried making my first program in the online developer environment (CS50 IDE). Just like the lecture, I am trying to use the compiler command to turn my &...
0
votes
0answers
19 views

I got a “linker command failed with exit code 1” error after compiling my source code

clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow mario.c -lcrypt -lcs50 -lm -o mario /usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/...
0
votes
1answer
121 views

linker command failed help me out

~/workspace/pset4/recover/ $ make recover clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wshadow recover.c -lc clang: ...
0
votes
1answer
63 views

linker comman failed with exit code of 1 in find.c

I was about to submit pset3 and pset4 which I have completed, but in the process of keeping my house in order by checking every code before submission, I discovered that helpers.c has developed issues....
0
votes
1answer
82 views

Where to link libraries to the debugger in ide.cs50.io?

I need to debug a program that uses the crypt library, so I have to use -lcrypt, but the debugger automatically uses make, and I don't know how to tell him to use clang with arguments. So here I ...
0
votes
0answers
54 views

Linker error with breakout.c

I have attached the linker error and a listing of the files in the directory that contains breakout.c. I think I have the right setup, but it won't compile. the clang command is clang -ggdb3 -O0 -...
1
vote
1answer
152 views

Breakout (with no changes) won't compile

I always get the following messsage when I try to compile breakout in PSET3. jharvard@appliance (~/Dropbox/CS50/pset3/pset3/breakout): make breakout clang -ggdb3 -O0 -std=c99 -Wall -Werror -Wno-...
2
votes
0answers
56 views

Why am I getting linking errors when trying to make a program that uses the SPL? [duplicate]

Why is it, whenever he uses "make" to generate the program, it works flawlessly; but when I do the same, I always receive linking errors? make text clang -ggdb3 -O0 -std=c99 -Wall -Werror text.c -...
0
votes
1answer
454 views

linker fails with exit code 1 in pset6

Why am I getting the following error message when I try to compile and how do I get rid of it? jharvard@appliance (~/Dropbox/pset6): make dictionary clang -ggdb3 -O0 -Qunused-arguments -std=c99 -...
12
votes
2answers
905 views

What does the linker do?

If pre-processor copies the code from library to my source code, and then compiles the combined code, that should mean, that with my code, the library is also compiled, and linked. What does the ...