bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a problem with ld options


From: Nick Clifton
Subject: Re: a problem with ld options
Date: Mon, 25 Oct 2004 12:41:52 +0100
User-agent: Mozilla Thunderbird 0.7.3 (X11/20040803)

Hi Chenyu,

   I'm encoutering a problem with ld.
   First, I compile and link my program as follows:
   gcc -Wl,-r -Wl,-d -static try.c -o try.o
   ld -q try.o -o try.out

I am unable to complete this last step (running ld with the -q option). It always fails for me with the message:

  undefined reference to `printf'

Please could you tell me how you configured your versions of gcc and ld ?

Cheers
  Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]