X-Recipient: archive-cygwin AT delorie DOT 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: <24831027.post@talk.nabble.com> Date: Wed, 5 Aug 2009 08:39:23 -0700 (PDT) From: coolsand To: cygwin AT cygwin DOT com Subject: Some library fail to be found when compiling a little program of GCC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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' arch/s3c2410/s3c2410.o(.text+0x8a0): undefined reference to `strncmp' arch/s3c2410/s3c2410.o(.text+0x8c4): undefined reference to `strncmp' arch/s3c2410/s3c2410.o: In function `command_test': arch/s3c2410/s3c2410.o(.text+0xeb0): undefined reference to `strncmp' arch/s3c2410/s3c2410.o(.text+0xed4): undefined reference to `strncmp' The function of strncmp is included in string.h which is the standard library. What occasion leads to this error above? I don't confirm that the stardard library required is also compiled to object when a program to link the object? In this occasion, which place I need to check such as the variable of environment or path..... ? Thanks. -- View this message in context: http://www.nabble.com/Some-library-fail-to-be-found-when-compiling-a-little-program-of-GCC-tp24831027p24831027.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