home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!lll-winken!cert!netnews.upenn.edu!cs.widener.edu!hela.iti.org!usc!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!voder!woodstock!news
- From: ted@airplane.sharebase.com (Ted Marshall)
- Newsgroups: comp.os.vms
- Subject: Re: VAX C Shared global variables
- Message-ID: <1992Nov5.181506.24465@sharebase.com>
- Date: 5 Nov 92 18:15:06 GMT
- References: <9211022051.AA12824@usppc.abb.com>
- Reply-To: ted@airplane.sharebase.com (Ted Marshall)
- Organization: NCR/ShareBase Corporation
- Lines: 37
- Nntp-Posting-Host: airplane
-
- In article <9211022051.AA12824@usppc.abb.com> Dave@usppc.abb.com writes:
- >The image clients are linked using the following script
- >
- >> server.exe: $(SERVER_OBJECTS)
- >> LINK /exec=server.exe /map/full -
- >> $(SERVER_OBJECTS), -
- >> shared.exe/share, -
- >> $(LIBS)
- >> purge speserver.exe
-
- This is a classic mistake, Just about everyone who tries to link
- against a shareable image does this. This usage of /SHAREABLE is
- only legal in option files and not on the command line. Link is
- not smart enough to see that /SHAREABLE is attached to an input
- file and instead thinks that you want to create a shareable image
- and that shared.exe is an object file. This is why you get those
- errors.
-
- The correct way to do this is as follows:
- server.exe: $(SERVER_OBJECTS)
- LINK /exec=server.exe /map/full -
- $(SERVER_OBJECTS), -
- shared.opt/option, -
- $(LIBS)
- purge speserver.exe
-
- where shared.opt contains:
- shared.exe/shareable
-
- See page LINK-28 of the Linker Utility Manual for more info.
-
- Hope this helps.
-
- --
- Ted Marshall ted@sharebase.com (408)369-5574
- NCR Corp. (ShareBase Div.) 2055A Logic Dr., San Jose, CA 95124
- The opinions expressed above are those of the poster and not his employer.
-