This is the mail archive of the
mailing list for the Cygwin project.
Re: Some library fail to be found when compiling a little program of GCC
Hi, link command :
/bin/arm-linux-ld -v $(LINKFLAGS) \
-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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple