Article View: alt.msdos.programmer
Article #1060Re: C/C++ 7.0 idiotic linking problem (the shame!)
From: Russ Poffenberger
Date: Wed, 27 Jan 1993 21:12
Date: Wed, 27 Jan 1993 21:12
30 lines
2154 bytes
2154 bytes
Guy Finney (gaf@anasazi.com) wrote:
: gaf@misty.anasazi.com (Guy Finney - me) writes:
: >
: >Fine, it compiles into hello.obj. But when I try to link it into hello.exe,
: >I get the message "Invalid object module" in reference to hello.obj.
: >Not even one of the Lnnnn message numbers to look up. Hmmphh.
:
: Thanks to all those who suggested there might be some other program
: named link.exe in my PATH prior to the one in my C development directory.
: That was it. This was very annoying. One might be forgiven for thinking
: that Microsoft would have anticipated this and either named their linker
: something else, or at least mentioned in the release notes that they
: overloaded the name link.exe so you could take appropriate action.
:
: Oh well. Another fun DOS development story. I'm glad I don't work
: on DOS for a living.
What makes you think the same thing couldn't happen on say a UNIX system? Or
any other system that supports multiple directories and an execution path
mechanism.
I see this type of thing all the time on UNIX. Users just need to be aware
of their environment. I think, whenever there is any doubt, to use a DOS
utility similar to "which" to tell where it actually found a specific
program.
Russ Poffenberger DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies ATE UUCP: {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive CIS: 72401,276
San Jose, Ca. 95110 Voice: (408)437-5254 FAX: (408)437-5246
Technical Details
Message-ID:
<1993Jan27.211235.1946@sj.ate.slb.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!caen!sol.ctr.columbia.edu!usc!cs.utexas.edu!geraldo.cc.utexas.edu!slcs.slb.com!leo.asc.slb.com!sjsca4!poffenReferences:
<1993Jan26.230221.19262@anasazi.com>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!batcomputer!caen!sol.ctr.columbia.edu!usc!cs.utexas.edu!geraldo.cc.utexas.edu!slcs.slb.com!leo.asc.slb.com!sjsca4!poffen From: poffen@sj.ate.slb.com (Russ Poffenberger) Subject: Re: C/C++ 7.0 idiotic linking problem (the shame!) Message-ID: <1993Jan27.211235.1946@sj.ate.slb.com> Sender: news@sj.ate.slb.com Organization: Schlumberger Technologies, ATE division, San Jose, Ca. X-Newsreader: TIN [version 1.1 PL7] References: <1993Jan26.230221.19262@anasazi.com> Date: Wed, 27 Jan 93 21:12:35 GMT Lines: 30