This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Newbie Problem with Linker!
- To: v dot canestrale at isnet dot it (Vincenzo Canestrale)
- Subject: Re: Newbie Problem with Linker!
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- Date: Mon, 15 Dec 1997 00:00:22 +1100 (EST)
- 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@cs.mu.oz.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@cygnus.com" with one line of text: "help".