delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/22/18:06:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <488659B2.C1DDD63@dessent.net>
Date: Tue, 22 Jul 2008 15:05:38 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Stefano Facchetti <s DOT facchetti AT kline DOT it>
CC: cygwin AT cygwin DOT com
Subject: Re: Build problems
References: <18599595 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Stefano Facchetti wrote:

> When I compile my cc files under cygwin with this command line:
> g++ -c festivalDll.cc -o festivalDll.o -L. -lfestival -lestools -lestbase
> -leststring -ltermcap -lwinmm -I../src/include/
> -I../../speech_tools/include/ -I ./ -mno-cygwin -I./mingw/include
> -L./mingw/lib/

This command makes no sense.  You're running "g++ -c" which means
compile but do not link.  -L and -l are options that are only relevant
when linking, so they serve no purpose when used with -c.  Undefined
reference errors only occur when linking, so they can't be the output of
this command.  Please don't edit things, copy and paste the *exact*
command and *exact* output.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019