X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <24838279.post@talk.nabble.com>
Date: Wed, 5 Aug 2009 17:05:38 -0700 (PDT)
From: coolsand <lewiha@yahoo.com.cn>
To: cygwin@cygwin.com
Subject: Re: Some library fail to be found when compiling a little program   of  GCC
In-Reply-To: <4A79AD30.9060001@sbcglobal.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <24831027.post@talk.nabble.com> <4A79AD30.9060001@sbcglobal.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Hi, link command : 
/bin/arm-linux-ld -v $(LINKFLAGS) \
		$(HEAD) \
		$(CORE_FILES) \
		$(DRIVERS) \
		$(LIBS) \
		-o vivi-elf $(CLIBS)
I use the 'LD' to link indeed, but I think using it is also correct when
'Gcc' be used for compiling .c file with some paraments.
Could you give me the way to using the 'ld' instead of 'gcc'?
 

Greg Chicares-2 wrote:
> 
> On 2009-08-05 15:39Z, coolsand wrote:
>> This is the message relied from the make of GCC as blow:
>> arch/s3c2410/s3c2410.o: In function `command_cpu':
>> arch/s3c2410/s3c2410.o(.text+0x87c): undefined reference to `strncmp'
> 
> Please show the command line that you used for linking.
> Perhaps you tried linking with 'ld' instead of 'gcc'?
> If you use 'gcc' to link, then the C runtime library
> is automatically included.
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Some-library-fail-to-be-found-when-compiling-a-little-program-of-GCC-tp24831027p24838279.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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

