This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Some library fail to be found when compiling a little program of GCC

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..... ?
View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]