Hi ...<div><br></div><div><br></div><div>I program over scilab some rutines and I create libraries to link with fortran, my principal rutines are in fortran and in linux all work fine. The next lines show the instructions that I use to compile them.</div>
<div><br></div><div><div><b>1.</b></div><div><b><br></b></div><div><b>gfortran -fPIC -I /usr/libx86_64-linux-gnu/4.4.3/libgfortranbegin.o -c *.f</b></div><div>(here compile fortran rutines)</div><div><b><br></b></div><div>
<b>2.</b></div><div><b><br></b></div><div><b>gcc -fPIC -I /opt/scilab-5.1.1/include/scilab -c sci_fsum.c </b></div><div><b><br></b></div><div><b>gcc -fPIC -I /opt/scilab-5.1.1/include/scilab -c libfsum.c</b></div><div>(here compile the rutines con C, they link scilab with fortran<b>)</b></div>
<div><b><br></b></div><div><b>3.</b></div><div><b><br></b></div><div><b>gcc -shared -Wl,-soname,libfsum.so -o libfsum.so *.o </b></div><div>(finally, here create the file ".so" to link all files create before)</div>
<div><br></div><div><br></div><div>Then I tried to compile the rutines for Mac, the first and second step run fine, but in the third step appears the next message:</div><div><br></div><div><div><i>gcc -shared -Wl,-soname,libautobnd.so -o libautobnd.so *.o </i>  </div>
<div>l<b>d: unknown option: -soname</b></div><div><b>collect2: ld returned 1 exit status</b></div><div><br></div></div><div><br></div><div>If you know what it is happen I'd agree your help while I continue my search in internet for someone to have the same problem ... </div>
<div><br></div><div><br></div><div>Greetings ...</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>