Article View: alt.msdos.programmer
Article #992Re: C/C++ 7.0 idiotic linking problem (the shame!)
From: Dov Bai-MSI Visitor
Date: Fri, 22 Jan 1993 00:01
Date: Fri, 22 Jan 1993 00:01
36 lines
1822 bytes
1822 bytes
In article <1993Jan21.212657.4692@anasazi.com> gaf@misty.anasazi.com (Guy Finney) writes:
>
>Okay, so I haven't done any C development on DOS for some years. My job is
>to write C on Unix, and I only recently got the bug for doing Windows
>development at home.
>
>So I got me the shiny new C/C++ 7.0, installed it per the instructions,
>and now find I can't link the simplest program (hello.c):
>
> #include <stdio.h>
> main() {
> printf("Hello world\n");
> }
>
>I compile it with the following command. Yes, I want the large model.
>
> cl /AL /c hello.c
>
>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.
>
>Geez, I'm not a total idiot, but what the heck is this all about? Am I
>missing some secret option to the linker, compiler, or what? Why isn't
>this just as straightforward as it should be? Any help will be appreciated,
>as this is going to be an expensive doorstop without the ability to link
>object modules together into a single executable.
>--
You probably have another linker (LINK.EXE) file on your PATH
other then the linker supplied with the package. Find it and
get rid of it.
Dov
Technical Details
Message-ID:
<1993Jan22.000140.609@tc.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!rpi!batcomputer!msiadmin.cit.cornell.edu!baiReferences:
<1993Jan21.212657.4692@anasazi.com>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!rpi!batcomputer!msiadmin.cit.cornell.edu!bai From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor) Subject: Re: C/C++ 7.0 idiotic linking problem (the shame!) Message-ID: <1993Jan22.000140.609@tc.cornell.edu> Sender: news@tc.cornell.edu Nntp-Posting-Host: msiadmin.cit.cornell.edu Organization: /usr/local/lib/news/organization References: <1993Jan21.212657.4692@anasazi.com> Date: Fri, 22 Jan 1993 00:01:40 GMT Lines: 39