From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: Newbie Problem with Linker! 14 Dec 1997 05:28:08 -0800 Message-ID: <9712141300.8535.cygnus.gnu-win32@mulga.cs.mu.OZ.AU> References: <16363979629779 AT isnet DOT it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: v DOT canestrale AT isnet DOT it (Vincenzo Canestrale) Cc: gnu-win32 AT cygnus DOT com Vincenzo Canestrale, you wrote: > I tried > gcc -c c:\Prog.C [OK] > ld c:\Prog.o [Doesn't work :-(] > > Which is the right command line? You should use `gcc' (or, for C++ programs, g++) to do the linking, rather than `ld'. Instead of `ld Prog.o' you should use `gcc Prog.o'. -- Fergus Henderson | Designing grand concepts is fun; fjh AT cs DOT mu DOT oz DOT au | finding nitty little bugs is just work. http://www.cs.mu.oz.au/~fjh | -- Brooks, in "The Mythical Man-Month". PGP key fingerprint: 00 D7 A2 27 65 09 B6 AC 8B 3E 0F 01 E7 5D C4 3F - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".