| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <dcalk AT bellatlantic DOT net> |
| Subject: | newbie linking question |
| Mime-Version: | 1.0 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |