[R] Windows dll compilation (mingw32): how to find R.h and other head er files when sketching short functions

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Feb 13 13:53:21 CET 2004


Paul Hewson <PHewson at devon.gov.uk> writes:

> Sorry, this seems like a particularly stupid question, but here goes.   It
> relates to some "sketching" work I'm doing under Windoze.
> 
> I can only get my C code to find R.h and friends if I shift these header
> files files and folders into the analogous mingw32 folders.   This seems a
> rather clumsy way of doing things, and I wondered what I've missed?   (I'm
> using the gcc -02 etc. commands as per Venables and Ripley's S Programming -
> which works fine.   However, having a duplicate set of header files doesn't
> seem too elegant)
> 
> I have no problem compiling (other peoples) packages from source, but my own
> code isn't quite ready to be packaged yet.
> 
> Thanks for any pointers.

Are you looking for the -I option to gcc ?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list