Skip to content
Prev 34028 / 63424 Next

Building R package with .c sub-routine files

On 9/15/2009 2:04 PM, pleydell at supagro.inra.fr wrote:
That's not the normal way to program in C:  normally you'd have a 
separate file2.h header file which is all you'd include in file1.c, and 
compile file2.c using the same header file to a separate object file.

I guess you could probably get your scheme to work by renaming file2.c 
to file2.h, but putting actual executable code into a .h file seems 
pretty strange.

Duncan Murdoch