From: <dan...@ya...> - 2001-01-04 18:52:34
|
--- Benoit Blanchon <ben...@fr...> wrote: > Hello, > How can I use the Htmlhelp library (from Microsoft) in my program > ? > I haven't the source code and the library is a .lib > > Thanks. > Try this (if you are using binutils 2.10) PSDKLIBPATH =/wherever/you/put/the/psdklibs gcc -o foo.exe foo.o $(PSDKLIBPATH)/htmlhelp.lib Danny _____________________________________________________________________________ http://au.classifieds.yahoo.com/au/car/ - Yahoo! Cars - Buy, sell or finance a car.. |
From: Benoit B. <ben...@fr...> - 2001-01-05 13:36:08
|
Thank you for your answer, but it doesn't seem to work. This is what I get : make -k gcc -s -c Anim.cpp gcc -o Anim.exe Anim.o resource.o _animation.o _preview.o _run.o c:/Programmation/MinGW/lib/HtmlHelp.lib -mwindows -lddraw -ldxguid ld: c:/Programmation/MinGW/lib/HtmlHelp.lib(release/init.obj): = warning: ignoring duplicate section `.text' ld: c:/Programmation/MinGW/lib/HtmlHelp.lib(release/init.obj): = warning: ignoring duplicate section `.text' There is no way to transform this ".lib" into a ".a" library ? Thanks. ----- Original Message ----- From: Danny Smith <dan...@ya...> To: Benoit Blanchon <ben...@fr...>; <min...@li...> Sent: Thursday, January 04, 2001 7:52 PM Subject: Re: [Mingw-users] Linking Htmlhelp.lib > > --- Benoit Blanchon <ben...@fr...> wrote: > Hello, > > How can I use the Htmlhelp library (from Microsoft) in my = program > > ? > > I haven't the source code and the library is a .lib > > > > Thanks. > > > > Try this (if you are using binutils 2.10) > PSDKLIBPATH =3D/wherever/you/put/the/psdklibs > gcc -o foo.exe foo.o $(PSDKLIBPATH)/htmlhelp.lib > > Danny |
From: Benoit B. <ben...@fr...> - 2001-01-06 14:25:52
|
Hi, I succeeded ! This is how I did to use the Htmlhelp.lib in my MinGW program : First, I found reimp at http://www.acc.umu.se/~anorland/gnu-win32/reimp.zip Then, I wrote this makefile : | LIB = Htmlhelp | DLL = hhctrl.ocx | | lib$(LIB).a : $(LIB).lib $(LIB).def | dlltool --dllname $(DLL) --def $(LIB).def --output-lib lib$(LIB).a -k | | $(LIB).def : $(LIB).lib | echo EXPORTS > $(LIB).def | reimp -s $(LIB).lib >> $(LIB).def But we have to edit the file Htmlhelp.def before compiling libHtmlhelp.a : we must delete the underscore before functions names and delete the lines 2 and 3 (why ? I don't know). Then the file libHtmlhelp.a can be compiled. The real difficulty was to found which DLL to link with : it in fact hhcrtl.ocx. Voila ! I think this makefile can convert other libs. Thanks to those who helped me. - Benoit. |
From: Appaiah K. <ana...@ya...> - 2001-01-10 09:44:14
|
> There is no way to transform this ".lib" into a ".a" library ? Please see http://www.acc.umu.se/~anorland/gnu-win32/ . This is a link to Andres Norlander's MinGW site, and he's got some cool tools over there. Download *reimp* package from there. This program converts Microsoft's new-style import libraries to import libraries for win32 ports of GNU tools, such as MinGW, Cygwin etc. I hope it does the job for you. Sincerely, A.Kumar Chattisgarh, India _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |