[R-sig-hpc] Problem creating a package with high-resolution timer

Jens Oehlschlägel jens.oehlschlaegel at truecluster.com
Thu Feb 3 15:37:56 CET 2011


Thanks Olaf,
Thanks Daniel,

Problem solved. The typo was only in the mail. But I funneld the -lrt flag via the R CMD INSTALL mechanics to the compiler instead of to the linker. 
Setting PKG_LIBS=-lrt in Makevars did it. 

Cheers
Jens



-----Ursprüngliche Nachricht-----
Von: "Olaf Mersmann" <olafm at datensplitter.net>
Gesendet: Feb 3, 2011 1:34:31 PM
An: r-sig-hpc at r-project.org
Betreff: Re: [R-sig-hpc] Problem creating a package with high-resolution timer

>Dear Jens,
>
>2011/2/3 "Jens Oehlschlägel" <jens.oehlschlaegel at truecluster.com>:
>> I am trying to INSTALL to R-2.12.1 a package with a high-resolution time (timer_gettime and friends).
>> I learned that I need to compile with the real time option "gcc -lrc"
>
>This should be "gcc -lrt" iirc. Is this a typo? Does it also fail if
>you link against librt
>Cheers,
>Olaf Mersmann
>
>_______________________________________________
>R-sig-hpc mailing list
>R-sig-hpc at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-hpc



More information about the R-sig-hpc mailing list