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