home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.msdos.programmer
- Path: sparky!uunet!cs.utexas.edu!asuvax!ennews!anasaz!gaf
- From: gaf@misty.anasazi.com (Guy Finney)
- Subject: C/C++ 7.0 idiotic linking problem (the shame!)
- Organization: Anasazi, Inc. Phoenix, Arizona USA
- Date: Thu, 21 Jan 1993 21:26:57 GMT
- Message-ID: <1993Jan21.212657.4692@anasazi.com>
- Originator: gaf@misty
- Sender: usenet@anasazi.com (Usenet News)
- Lines: 31
-
-
- 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.
- --
- Guy Finney "Ah, this is obviously some
- Anasazi, Phoenix AZ new usage of the word 'safe'
- gaf@anasazi.com -or- I was previously unaware of".
- ...!asuvax!anasaz!gaf --- Arthur Dent
-