home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / win32 / 2462 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.4 KB

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!olivea!charnel!sifon!homer.cs.mcgill.ca!storm
  2. From: storm@cs.mcgill.ca (Marc WANDSCHNEIDER)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Re: link386.exe was it left out of NT?
  5. Message-ID: <1992Dec15.180415.7927@cs.mcgill.ca>
  6. Date: 15 Dec 92 18:04:15 GMT
  7. References: <1992Dec12.001535.8433@u.washington.edu>
  8. Sender: news@cs.mcgill.ca (Netnews Administrator)
  9. Organization: SOCS - McGill University, Montreal, Canada
  10. Lines: 27
  11.  
  12. In article <1992Dec12.001535.8433@u.washington.edu> mvickers@orca.fhcrc.org (Mark Vickers) writes:
  13. >I tried to compile a simple C program on NT and when I typed
  14. >cl myprog.c I got an error that it couldn't find link386.exe
  15. >
  16. >I looked on the entire distribution CD and couldn't find it.
  17. >
  18. >How does one compile simple ANSI C on NT?
  19.  
  20.     Most people are going to say to look at the makefile included
  21. in the samples directory.
  22.  
  23.     However, this still doesn't help out, so here's the answer to 
  24. compile a simple C program from the command line:
  25.  
  26. cl386 -coff -Blcoff [filename.c]+ ntdll.lib libc.lib kernel32.lib
  27.  
  28.  
  29.     That should work just fine.
  30.  
  31.     toodlepip!
  32.     Marc 'em.
  33.  
  34. -- 
  35.   storm@cs.mcgill.ca           McGill University         "-- Attack ships on
  36.   Marc Wandschneider           Montreal, CANADA             fire "
  37.     Any opinions expressed are not mine, but those of the Demon Lord
  38.       Yeegeheeegenogohugu who possessed me whilst I munched on Raisin Bran.
  39.