<div dir="ltr"><div>Can you verify that all object files are deleted prior to running make?</div><div>Including `bsd/string.h` should have resolved the issue, although without more</div><div>background the debugging I can do is limited. Please let me know if this issue</div><div>persists!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 6, 2016 at 10:39 PM, bzhang41 <span dir="ltr">&lt;<a href="mailto:bzhang41@stevens.edu" target="_blank">bzhang41@stevens.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Patrick:<br>
<br>
Thanks for you comments for my snap shot.<br>
<br>
I took your suggestions to use strmode(3), but I can&#39;t pass the cc -Wall compile,<br>
it shows the following error:<br>
<br>
/tmp/ccxcP9Dh.o: In function `lfdisplay&#39;:<br>
ls.c:(.text+0xea5): undefined reference to `strmode&#39;<br>
collect2: ld returned 1 exit status<br>
<br>
I check the man, and I it says this function should #include &lt;bsd/string.h&gt;<br>
So I did it, but I still get the above error message.<br>
How can I fix it ?<br>
<br>
Thanks<br>
Bo<br>
------------------------------<wbr>------------------<br>
<br>
- Source code readability could use some work (i.e. move comments from header<br>
  files to source files, indentations &amp; brackets)<br>
<br>
`myfun.h`<br>
- No comments.<br>
<br>
`myfun.c`<br>
- 30:32 - closedir(3) may fail<br>
- 149 - atoi(3) is not recommended (i.e. setting `bs` as `BACON`) will cause<br>
  atoi(3) to fail); rather, I would recommend strtol(3) then casting the `long`<br>
  down to an `int` (after checking for overflow and MAX_INT).<br>
- 277:358 - strmode(3) accomplishes filemode too<br>
- 427:499 - please note that some flags may override others<br>
  (i.e. `ls -t -u` == `ls -u`)<br>
<br>
`nooptions.c`<br>
- No include. I do not believe this file is being used yet.<br>
<br>
`oneopton.c`<br>
- No include. I do not believe this file is being used yet.<br>
<br>
`ls.c`<br>
- C source code should not be included; rather, the C files are passed to the<br>
  compiler (i.e. `gcc ls.c nooptions.c oneoption.c`)<br>
</blockquote></div><br></div>