Article View: gnu.gcc.help
Article #50829Compiling Ident strings into executable
From: Christopher Davey
Date: Thu, 05 Aug 1993 14:58
Date: Thu, 05 Aug 1993 14:58
24 lines
1461 bytes
1461 bytes
We are using gcc to compile libraries on SunOs 4.1.3, with gcc 2.4.3. We can use the RCS Id facility to attach a version to each source file, but we also attach an Id in a separate ??ver.c file, along the lines of static char *pszVersion = "$MYID=[flying pigs module]$"; Unfortunatly, the linker realises that ??ver.o is not required to produce the final executable, and does not link it in. Is there any way to force the linking to happen ? The only solution that I have come up with is just to append the neat text of the versions to the end of the executable, and hope for the best ( ie that it won't damage the software ). Any help appreciated, Chris -- ----WNA---------------------------------------------------------------------- Chris Davey Internet: chris@quay.ie Quay Financial Software Phone : +353 1 6612377 Fax: +353 1 6607592
Technical Details
Message-ID:
<5Aug.145854.15583@quay.ie>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!ifmsun8.ifm.uni-hamburg.de!news.dkrz.de!dscomsa!dxcern!mcsun!ieunet!ieunet!quay.ie!chrisShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cbd55e0a714ac7fe,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-08-05 09:26:41 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!ifmsun8.ifm.uni-hamburg.de!news.dkrz.de!dscomsa!dxcern!mcsun!ieunet!ieunet!quay.ie!chris From: chris@quay.ie (Christopher Davey) Subject: Compiling Ident strings into executable Message-ID: <5Aug.145854.15583@quay.ie> Date: Thu, 5 Aug 1993 14:58:54 GMT Organization: Quay Financial Software Lines: 24