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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._