From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac74a7da38ecae41 X-Google-Attributes: gid103376,public From: Unknown@unknown.com Subject: Re: Using MS Windows .RES files with GNAT Date: 1997/08/14 Message-ID: <33f32c00.0@207.71.36.3>#1/1 X-Deja-AN: 264641152 References: <01bca815$60ac1080$61a2989e@adormal.demon.co.uk> Newsgroups: comp.lang.ada Date: 1997-08-14T00:00:00+00:00 List-Id: In article <01bca815$60ac1080$61a2989e@adormal.demon.co.uk>, "Norman France" wrote: >Does anybody know how to get the MS Windows version of GNAT to link a .RES >resource file into an executable ? > >I've tried passing them to GNATMAKE via the linker options but GNATLINK >complains that it doesn't recognise the file type. > >None of the GNAT documentation I've got is specific to the MS Windows >version. > >Can anybody help please ? > > Norman France. > If you have access to a MS development tool, MSVC++ etc, it comes with a utility called "cvtres". This utility produces an object file, ".obj", from a resource file, (either ".rc" or ".res", cannot remember which) which can be linked using gnatlink by including it on the command line. With GNATMAKE, use the "-largs res_file.obj" (use your own res_file.obj) option. If you don't have access to the MS utility, Cygnus (the providers of the GNAT runtime on MS platform) has a utility called "res2coff" which is designed to make resource files available to the linker. I use the MS utility and don't know exactly where to find the "res2coff" utility except to start at www.cygnus.com Simon Knipe - sknipe@ktc.com