<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Dear Simon</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This is what I get from the screen. Is there a way to specify the library directory </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[Quad:~/Desktop/pliersrc] skong% ls</DIV><DIV>affy_ptr.h      affyheapsort.h  affyplier.cpp   affyplier.h     error.h         iaffyplier.h    plier_impl.cpp  plieralg.cpp    plieralg.h      rwrapper.cpp</DIV><DIV>[Quad:~/Desktop/pliersrc] skong% R64 CMD SHLIB affyplier.cpp plieralg.cpp plier_impl.cpp rwrapper.cpp</DIV><DIV>g++ -no-cpp-precomp -I/usr/local/lib64/R/include  -I/usr/local/include   -fno-common  -arch ppc64 -m64 -mcpu=G5 -mtune=G5 -mpowerpc-gpopt -force_cpusubtype_ALL -c affyplier.cpp -o affyplier.o</DIV><DIV>g++ -no-cpp-precomp -I/usr/local/lib64/R/include  -I/usr/local/include   -fno-common  -arch ppc64 -m64 -mcpu=G5 -mtune=G5 -mpowerpc-gpopt -force_cpusubtype_ALL -c plieralg.cpp -o plieralg.o</DIV><DIV>plieralg.cpp:30:20: error: malloc.h: No such file or directory</DIV><DIV>make: *** [plieralg.o] Error 1</DIV><DIV>[Quad:~/Desktop/pliersrc] skong% </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Then I modified the plieralg.cpp </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>from </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#683821" face="Monaco" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">#include &lt;malloc.h&gt;</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>to </DIV><DIV><FONT class="Apple-style-span" color="#683821" face="Monaco" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;">#include &lt;stdlib.h&gt;</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>After changing one line, </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[Quad:~/Desktop/pliersrc] skong% R64 CMD SHLIB affyplier.cpp plieralg.cpp plier_impl.cpp rwrapper.cpp</DIV><DIV>g++ -no-cpp-precomp -I/usr/local/lib64/R/include  -I/usr/local/include   -fno-common  -arch ppc64 -m64 -mcpu=G5 -mtune=G5 -mpowerpc-gpopt -force_cpusubtype_ALL -c plieralg.cpp -o plieralg.o</DIV><DIV>g++ -no-cpp-precomp -I/usr/local/lib64/R/include  -I/usr/local/include   -fno-common  -arch ppc64 -m64 -mcpu=G5 -mtune=G5 -mpowerpc-gpopt -force_cpusubtype_ALL -c plier_impl.cpp -o plier_impl.o</DIV><DIV>g++ -no-cpp-precomp -I/usr/local/lib64/R/include  -I/usr/local/include   -fno-common  -arch ppc64 -m64 -mcpu=G5 -mtune=G5 -mpowerpc-gpopt -force_cpusubtype_ALL -c rwrapper.cpp -o rwrapper.o</DIV><DIV>g++ -bundle -flat_namespace -undefined suppress -m64 -L/usr/local/lib -L/usr/local/lib64/R/lib -o affyplier.so affyplier.o plieralg.o plier_impl.o rwrapper.o   -L/usr/local/lib64/R/lib -lR</DIV><DIV>ld64 warning: indirect library libgfortran.0.dylib could not be loaded: file not found: libgfortran.0.dylib</DIV><DIV>ld64 warning: indirect library libgcc_s.1.0.dylib could not be loaded: file not found: libgcc_s.1.0.dylib</DIV><DIV>ld64 warning: indirect library libreadline.5.dylib could not be loaded: file not found: libreadline.5.dylib</DIV><DIV>[Quad:~/Desktop/pliersrc] skong% </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Also I attached the codes I used.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thank you very much for the helps!!!</DIV><DIV>-S</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV></DIV></BODY></HTML>