Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.1.0.14.0.20020625222407.037a0240@mailbox.bellatlantic.net> X-Sender: dcalk AT mailbox DOT bellatlantic DOT net Date: Tue, 25 Jun 2002 22:26:24 -0400 To: cygwin AT cygwin DOT com From: David Calkins Subject: newbie linking question Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed I'm using cygwin and would like to seperately compile, then link my code. What should I be using for the linker command line? When I try to link I keep getting "undefined reference to __main" as well as other things the linker can't find. I know this is probably a very basic question, but I can't seem to find good info in the documentation and/or FAQ to indicate which libraries I need to link a c++ application with. I've switched over to just using a single step gcc command in my Makefile for now, but I'd like to seperate it out. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/