|
Message
From: "rchowdsl" <rchowdsl@p...>
Date: Thu, 17 Apr 2003 08:24:34 -0700
Subject: RE: [openrisc] fopen() not defined??
Simon,
Thanks for the reply.
Maybe i've pharsed my question incorrectly.
i don't want to do a fopen in the or1k hardware
running uclinux; however, i want to do a fopen
on the debug machine that's running the toolchain(gdb/ddd).
ok, thinking aloud... what I want is
in our firmware to be able to call a system function like fopen
on the debug machine. i don't see how that works, do you
know?
-thanks
-Raymond
-----Original Message-----
From: owner-openrisc@o...
[mailto:owner-openrisc@o...]On Behalf Of Simon Srot
Sent: Wednesday, April 16, 2003 12:14 PM
To: openrisc@o...
Subject: Re: [openrisc] fopen() not defined??
fopen is defined in C library, so first you have to have stdio.h
included and you have to link your program to C library (in our case
this would be uClibc). Also, you have to have uClinux running to do such
things.
Check the or1k/uclinux/userland folder for programs that are running
under uClinux on or32.
Simon
rchow@n... wrote:
>
> Hi,
>
> I'm trying to compile some C test code that uses the fopen() call
> to read in a data file. While compiling using or32-uclinux-gcc, it
> complains fopen() is not defined.
>
> have anyone seen this before and can point me to the right direction?
>
> -thanks in advance
> -Raymond
>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.470 / Virus Database: 268 - Release Date: 4/8/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.470 / Virus Database: 268 - Release Date: 4/8/2003
|
 |