I am learning C so humor me. I have a simple script but everytime I run it I get a segmentation fault. Any ideas?<br><br>#include <shapefil.h><br><br>int main (void)<br>{<br> const char * shapefile = "/mnt/share/uas/GRRUVI2_uc/<div id=":25w" class="ii gt">
extractor/colorado/fe_2007_08_county";<br>
SHPHandle handle;<br> int entities;<br> int type;<br> double minbound;<br> double maxbound;<br> <br> printf("%s\n", shapefile);<br> <br> handle = SHPOpen(shapefile,"rb");<br>
SHPGetInfo( handle,&entities,&type,&minbound,&maxbound);<br> <br> SHPClose(handle);<br> return 0;<br>}</div><br clear="all"><br>-- <br>Jamie Ryan Lahowetz<br>University of Nebraska - Lincoln<br>
Graduate Student - Geosciences<br>402.304.0766<br><a href="mailto:jlahowetz@gmail.com">jlahowetz@gmail.com</a><br>