Article View: comp.os.msdos.programmer
Article #455Re: Duplicate function names (in different .lib's)
From: Duncan Murdoch
Date: Fri, 24 Jul 1992 03:01
Date: Fri, 24 Jul 1992 03:01
22 lines
1651 bytes
1651 bytes
In article <1992Jul24.003009.10647@bronze.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (Ya-Gui Wei) writes: >In article <1992Jul17.063123.6492@grebyn.com> bittware@grebyn.com (Bittware) writes: >>I'm having a problem with duplicate function names between a commercial >>graphics library and the Borland graphics library (moveto). ... > > One dirty solution would be to patch one of the libraries to change >one of the names. I don't know of a cleaner solution. Another solution is to change to a language with a richer idea of scoping, such as Pascal or Modula-2. In Turbo Pascal, for instance, every library (unit) could have a "moveto", and one would be the default, but you could access any of the others by specifying which library to get it from. The only name clashes that are hard to deal with in TP are clashes between the names of units; those aren't allowed. I don't think TP would be a particularly good choice in this case because its linker is so weak at handling foreign libraries, but other Pascal or Modula compilers might be. Duncan Murdoch dmurdoch@mast.queensu.ca
Technical Details
Message-ID:
<BrvHpo.K12@knot.ccs.queensu.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!dmurdochReferences:
<1992Jul17.063123.6492@grebyn.com> <1992Jul24.003009.10647@bronze.ucs.indiana.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!dmurdoch From: dmurdoch@QueensU.CA (Duncan Murdoch) Subject: Re: Duplicate function names (in different .lib's) Message-ID: <BrvHpo.K12@knot.ccs.queensu.ca> Sender: news@knot.ccs.queensu.ca (Netnews control) Organization: Queen's University, Kingston, Canada References: <1992Jul17.063123.6492@grebyn.com> <1992Jul24.003009.10647@bronze.ucs.indiana.edu> Date: Fri, 24 Jul 1992 03:01:00 GMT Lines: 22