<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I have written a short code in c utilizing the "wsac1" subroutine.<div>When compiling, I get this:</div><div><br></div><div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">Undefined symbols:</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp;"_wsac1", referenced from:</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">&nbsp;&nbsp; &nbsp; &nbsp;_main in cc7iJC76.o</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">ld: symbol(s) not found</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">collect2: ld returned 1 exit status</span></font></div><div><br></div><div>This is the only problem and when I comment out the line containing wsac1 the program compiles with no errors.</div><div>The part after _main, where it says "cc7iJC76.o", changes with every try.</div><div><br></div><div>This is my compile line:</div><div><br></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">cc codeName.c -o codeName -lm -m32&nbsp;sacio.a&nbsp;</span></font></div><div><br></div><div>where sacio.a is in the same folder as codeName.c.</div><div>I have tried giving the full path of sacio.a as-well as changing the order of appearance of the arguments in the compile line.</div><div><br></div><div>I know that sacio.a is being read because when -m32 wasn't specified I got a warning stating:</div><div><br></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 12px;">ld: warning: in sacio.a, file was built for unsupported file format which is not the architecture being linked (x86_64)</span></font></div><div><br></div><div>I am using MacSAC 10.6f-grh104 and the sacio.a that came with it.</div><div>I am currently trying to compile this code on a Mac running OS X 10.6.3 (i7 processor) but I intend to compile this on a linux machine that does not have sac installed. Can I copy the sacio.a that came with MacSAC or should I use a different archive file?</div><div><br></div><div>Thanks for all your help.</div><div>Shahar</div></div></body></html>