<div dir="ltr">Here's the error after running 'make all' - 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':</div><div>/home/tnadkarn/tnadkarn_midterm_snapshot/lsfunc.c:446: undefined reference to `strmode'</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"><<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@stevens.edu</a>></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'm using the right name which is why its confusing. I don't get a declaration error so its finding it but like Jan said it might be some type of linking error. I'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, "yluo4" <<a href="mailto:yluo4@stevens.edu" target="_blank">yluo4@stevens.edu</a>> 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 <<a href="mailto:tnadkarn@stevens.edu" target="_blank">tnadkarn@stevens.edu</a>> 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 <bsd/string.h> and using<br>
str_mode I get "undefined reference" error for str_mode.<br>
</blockquote>
<br>
"undefined reference" 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>