home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / msdos / programm / 3198 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  52 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!rpi!batcomputer!msiadmin.cit.cornell.edu!bai
  3. From: bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor)
  4. Subject: Re: C/C++ 7.0 idiotic linking problem (the shame!)
  5. Message-ID: <1993Jan22.000140.609@tc.cornell.edu>
  6. Sender: news@tc.cornell.edu
  7. Nntp-Posting-Host: msiadmin.cit.cornell.edu
  8. Organization: /usr/local/lib/news/organization
  9. References: <1993Jan21.212657.4692@anasazi.com>
  10. Date: Fri, 22 Jan 1993 00:01:40 GMT
  11. Lines: 39
  12.  
  13. In article <1993Jan21.212657.4692@anasazi.com> gaf@misty.anasazi.com (Guy Finney) writes:
  14. >
  15. >Okay, so I haven't done any C development on DOS for some years.  My job is
  16. >to write C on Unix, and I only recently got the bug for doing Windows
  17. >development at home.
  18. >
  19. >So I got me the shiny new C/C++ 7.0, installed it per the instructions,
  20. >and now find I can't link the simplest program (hello.c):
  21. >
  22. >    #include <stdio.h>
  23. >    main() {
  24. >        printf("Hello world\n");
  25. >    }
  26. >
  27. >I compile it with the following command.  Yes, I want the large model.
  28. >
  29. >    cl /AL /c hello.c
  30. >
  31. >Fine, it compiles into hello.obj.  But when I try to link it into hello.exe,
  32. >I get the message "Invalid object module" in reference to hello.obj.
  33. >Not even one of the Lnnnn message numbers to look up.  Hmmphh.
  34. >
  35. >Geez, I'm not a total idiot, but what the heck is this all about?  Am I
  36. >missing some secret option to the linker, compiler, or what?  Why isn't
  37. >this just as straightforward as it should be?  Any help will be appreciated,
  38. >as this is going to be an expensive doorstop without the ability to link
  39. >object modules together into a single executable.
  40. >-- 
  41.  
  42.  
  43. You probably have another linker (LINK.EXE) file on your PATH
  44. other then the linker supplied with the package. Find it and
  45. get rid of it.
  46.  
  47.  
  48. Dov
  49.  
  50.  
  51.  
  52.