[Rd] htmlhelp() question

Prof Brian D Ripley ripley@stats.ox.ac.uk
Thu, 7 Feb 2002 07:49:57 +0000 (GMT)


Let me stress that the R instructions do work, Rchtml.dll is by default
built with mingw, and it also works when cross-compiled under mingw.

Also, there is no `fakery': what is done is a standard way to build an
import library.

On Wed, 6 Feb 2002, Allin Cottrell wrote:

> On Tue, 5 Feb 2002, Liaw, Andy wrote:
>
> > I thought it was documented that htmlhelp can not be built with
> > cross compilers.
>
> Hmm, I begin to wonder.  Brian Ripley offered me a reference to the
> MkChmDll script in the R sources.  This looked promising: it builds a
> libhhctrl.a import library by a sort of "fakery", echoing the
> appropriate function name into a .def file and then compiling an .a
> lib with dlltool, with only this .def as input. I tried this, and my
> program (which calls HtmlHelp()) linked just fine using libhhctrl.a.
> But I'm afraid it wouldn't run.  At runtime, Windows (win98, to be
> specific) says:
>
> <myprog> linked to missing export HHCTRL.OCX:HtmlHelpA@16
>
> and aborts at startup.
>
> The machine I tested on has hhctrl.ocx in windows/system OK.
>
> Looking back at the R sources it seems that libhhctrl.a is somehow
> tied up with Rchtml.dll, in the source for which it is stated,
>
> "Can be built with VC++6 ..."
>
> So at this point I wonder if Andy is right: is there really any way to
> import the HtmlHelp() function without using a Microsoft compiler?
>
> It seems as if there ought to be a way, but it might involve having
> access to the source code for HHCTRL.OCX, whatever sort of beast that
> may be.
>
> Or am I (I hope) missing something?
>
> Allin Cottrell.
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._