From: rqy1319 AT is4 DOT nyu DOT edu (rqy1319 AT is4 DOT nyu DOT edu) Newsgroups: comp.os.msdos.djgpp Subject: Re: How can I link? Date: Mon, 13 Jul 1998 01:46:24 GMT Organization: New York University Lines: 16 Message-ID: <35aa63e1.360008@netnews.nyu.edu> References: <35a8dd76 DOT 1840614 AT netnews DOT nyu DOT edu> <35A95EF8 DOT A2326CD5 AT teccart DOT qc DOT ca> NNTP-Posting-Host: dialn-async522.dial.net.nyu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Thanks for replying me, but it doesn't work, if I try to compile C++ code. I need to execute "g++ foo.cc" instead of using "gcc" command; then I need to execute "stubify A.OUT" as Mr. Martin Str|mberg said. However, if possible, I would like to get .exe file directly. Why my compiler doesn't generate .exe file? On Mon, 13 Jul 1998 01:12:21 GMT, "Jean-Réginald Louis" wrote: >To produce a .exe file use the '-o' option wilh the filename. > >ex.: > > gcc foo.cc -o foo.exe -lmath >