This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: undefined reference errror using gcc 3.3.2


On 12/6/05, pati (sent by Nabble.com) <lists@nabble.com> wrote:
>
> Hi,
> I dont know if this is the correct forum for my question..if not, sorry abt that, but Can anyone help me..
>
> I am trying to compile and link a simple hello world program , using gcc 3.3.2 provided with the AMD Au1550 development board documentation CD. the linker crashes with undefined references to printf . Do I need to use libraries from newlib or binutils? The CD provides a prebuilt version of gcc and I installed it directly. The CD provides a printf function with the hello world example, and it works with that. but my hello world doesnot link . I am new to gnu toolchain and any help or direction to the correct forum to post this question , would be appreciated.
> --
> Sent from the Sourceware - crossgcc list forum at Nabble.com:
> http://www.nabble.com/undefined-reference-errror-using-gcc-3.3.2-t691583.html#a1825445
>
>
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
>
>


Someone correct me if I'm wring, but you may need to link directly
with the C-library, by passing -lc to the linker.  Can you post your
compiler command line?
Mark

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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