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

Re: [microblaze-uclinux] File I/O fread() fwrite() undefined references



Hi David,

David Montminy wrote:

> I'm writing a program that alters a user file in uClinux.  In trying
> to use fread() and fwrite() to read and write from the files.  I get
> the following compiler messages from mb-gcc, but I do not get these
> errors when I run gcc to compile it on my Linux box.
> 
> [root@localhost translate]# mb-gcc translate.c

You can't currently cross-compile an mb-uclinux application just by
using the mb-gcc command.  It needs to be built and linked against the
right libraries, be turned into a uclinux executable, and so on.

See this page for options:

http://www.itee.uq.edu.au/~jwilliams/wiki/index.php/OutOfTreeCompile

Alternatively, add it in uClinux-dist/user following the
Docuemtnation/adding-applications-hwoto instructions.

Regards,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/