LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Simon Srot <simons@o...>
    Date: Fri, 18 Apr 2003 08:26:38 +0200
    Subject: Re: [openrisc] fopen() not defined??
    Top

    Hi Raymond,
    
    I still don't understand what do you want to do.
    
    This might sound silly, but if you are compiling program that will run
    on your host machine, then you should use cc or gcc instead
    or32-uclinux-gcc.
    
    Simon
    
    rchowdsl wrote:
    > 
    > 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
    > 
    > 
    
    
    

    ReferenceAuthor
    RE: [openrisc] fopen() not defined??Rchowdsl

    Follow upAuthor
    RE: [openrisc] fopen() not defined??Rchowdsl

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.