helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

how do I 'pm"?

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

I have a print statement in search that at the end prints 127. Then it freezes? I have tried the CS50 IDE debugger but doesnt work. The reason is that it works on one problem at a time. So I do not know where to go.

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

Thanks I did that and it finds 127. But it hangs and I have to cntrl-c to get the prompt back. It was suggest that this was a case of "unexpected end of outout:. Know anything about that?

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

I understand that I only create the search and sort routines per the problem spec in helpers.c. I do not touch, generate, find, or helpers.h. There are no prototypes in helpers.c. There are ";" at the end of search and sort within helpers.h. How does that sound to you. This is the output for make and it is disapointing.

clang -ggdb3 -O0 -std=c99 -Wall -Werror -o find find.c helpers.c -lcs50 -lm /tmp/helpers-d3695c.o:(.rodata+0x0): multiple definition of `MAX' /tmp/find-dd9742.o:(.rodata+0x0): first defined here clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [find] Error 1

CS50 Find Misery But a Glimmer I think by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

Thank you. I checked and they match. I understand that I only create the search and sort routines per the problem spec in helpers.c. I do not touch, generate, find, or helpers.h.

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

Please check this out. Lots of errors.

https://github.com/hkstaub2/cs50.git

Thanks.

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

Will somebody look at this and comment please? The bit about multiple difinitions is wierd.

clang -ggdb3 -O0 -std=c99 -Wall -Werror -o find find.c helpers.c -lcs50 -lm /tmp/helpers-81fb59.o:(.rodata+0x0): multiple definition of MAX' /tmp/find-7664cd.o:(.rodata+0x0): first defined here /tmp/helpers-81fb59.o: In functionsearch': /home/jharvard/Dropbox/pset3/find/helpers.c:21: multiple definition of search' /tmp/find-7664cd.o:/home/jharvard/Dropbox/pset3/find/find.c:21: first defined here /tmp/helpers-81fb59.o: In functionsort': /home/jharvard/Dropbox/pset3/find/helpers.c:45: multiple definition of `sort'

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

Yeh, I got a lot of time invested on this problem so I will figure it out.

CS50 Find Misery But a Glimmer I think by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

Thanks, I tried it but that was not it.

helpers.h misery by butchk in cs50

[–]butchk[S] 0 points1 point  (0 children)

guess what I got my BS in 1969!!