Thank you very much! This is an easy and very effective solution.
Thanks again, Pierre Barry Rowlingson a écrit : > 2008/8/11 Lafaye de Micheaux Pierre > <[EMAIL PROTECTED]>: > >> Thank you Barry, >> >> In fact, these are only C files (not C++) and i use the extern "C" >> directive. >> >> I would prefer not to rename the files because many of these files serve >> also in other projects where they should have the .cpp extension >> I would also not like to merge all the *.cpp files in one unique file >> because many users have to provide their own C file. >> >> So i would really like to use some kind of configure or Make script, that >> should be put in the source directory tree of the R package. >> > > If the only function of these files within the R package in question > is to be included into the other C++ files, then perhaps you could put > them in another directory and include them from there: > > #include "../extrasrc/foo.cpp" > > I'm not sure if the forward slash will work in non-Unix OSs, but it might... > > There may be some make-magic to tell make to exclude some files from > its implicit build rules, but I don't know what it is. > > Barry > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > EUR > -- Pierre Lafaye de Micheaux Bureau 210, bâtiment BSHM 1251 avenue centrale BP 47 38040 GRENOBLE Cedex 09 FRANCE Tél.: 04.76.82.58.73 / Fax: 04.76.82.56.65 [EMAIL PROTECTED] http://www.biostatisticien.eu [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.