<div dir="ltr">Here&#39;s the error after running &#39;make all&#39; - this is on Linux lab, not sure where to go from here:<div><br></div><div><div>gcc -o ls.o -c -g -Wall ls.c </div><div>gcc -o lsfunc.o -c -g -Wall lsfunc.c </div>
<div>gcc -o ls ls.o lsfunc.o -Wl,-rpath,/usr/local/lib </div><div>lsfunc.o: In function `lsfiletype&#39;:</div><div>/home/tnadkarn/tnadkarn_midterm_snapshot/lsfunc.c:446: undefined reference to `strmode&#39;</div><div>collect2: ld returned 1 exit status</div>
<div>make: *** [ls] Error 1</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 10:29 PM, Tejas Nadkarni <span dir="ltr">&lt;<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@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"><p dir="ltr">Nope. I&#39;m using the right name which is why its confusing. I don&#39;t get a declaration error so its finding it but like Jan said it might be some type of linking error. I&#39;ll post the error in a bit from Linux Lab. </p>
<div class="HOEnZb"><div class="h5">

<div class="gmail_quote">On Oct 7, 2013 10:28 PM, &quot;yluo4&quot; &lt;<a href="mailto:yluo4@stevens.edu" target="_blank">yluo4@stevens.edu</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  I think the function is strmode, not str_mode.  Maybe you put wrong name.<br>
 Yulong<br>
<br>
<br>
On 10/07/2013 10:19 PM, Jan Schaumann wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Tejas Nadkarni &lt;<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@stevens.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Even on Linux-Lab when I try to compile including &lt;bsd/string.h&gt; and using<br>
str_mode I get &quot;undefined reference&quot; error for str_mode.<br>
</blockquote>
<br>
&quot;undefined reference&quot; is normally a link-time error, not a compile-time<br>
error.  Post your error output here to make it easier for people to help<br>
you.<br>
<br>
-Jan<br>
______________________________<u></u>_________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/<u></u>mailman/listinfo/cs631apue</a><br>
</blockquote>
______________________________<u></u>_________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/<u></u>mailman/listinfo/cs631apue</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div>