2008/8/11 Lafaye de Micheaux Pierre <[EMAIL PROTECTED]>:
> I would like to be able to choose which *.cpp files will be compiled and to > exclude some *.cpp files from the compilation. > This is because some of my *.cpp files contain #include instructions calling > some other *.cpp file. > For example, file1.cpp would contain > #include "file2.cpp" > #include "file3.cpp" > If you don't want them compiled individually, rename them to something other than .cpp. Or change your system so that instead of including the C++ code, you include a header (.h file) and link to the functions used. This is the usual way to work, but you may be doing something really perverse in your C++. I've never seen anyone try and include complete C++ files in other C++ files.... 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.