undefined reference errror using gcc 3.3.2
Wed Dec 7 02:33:00 GMT 2005
On 12/6/05, pati (sent by Nabble.com) <firstname.lastname@example.org> wrote:
> 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:
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to email@example.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?
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc