rspatial / geosphere

R geosphere package
GNU General Public License v3.0
34 stars 7 forks source link

Add missing `stdlib.h` include #6

Closed hsbadr closed 2 years ago

hsbadr commented 2 years ago

Fixes:

   a_dist.c(132): error: identifier "size_t" is undefined
                for(size_t i=0; i < *n; i++) {
                    ^
rhijmans commented 2 years ago

Thank you very much!

hsbadr commented 2 years ago

@rhijmans Thanks! It now builds successfully, but the vignettes need to be updated/fixed:

Installation OK but failed to build vignettes, see 'R CMD build' above.
  --- re-building ‘geosphere.Rnw’ using Sweave

  Error: processing vignette 'geosphere.Rnw' failed with diagnostics:
   chunk 13 
  Error in .inversegeodesic(as.double(x[, 1]), as.double(x[, 2]), as.double(a),  : 
    argument "a" is missing, with no default

  --- failed re-building ‘geosphere.Rnw’

  SUMMARY: processing the following file failed:
    ‘geosphere.Rnw’

  Error: Vignette re-building failed.
  Execution halted
rhijmans commented 2 years ago

Should be fixed now too. Thank you.