From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11557 invoked by alias); 19 Jul 2005 14:46:32 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 10711 invoked by uid 22791); 19 Jul 2005 14:46:25 -0000 Received: from mx1.itb.ac.id (HELO mx1.itb.ac.id) (167.205.23.6) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 19 Jul 2005 14:46:25 +0000 Received: from antivirus.itb.ac.id (antivirus.itb.ac.id [167.205.108.137]) by mx1.itb.ac.id (Postfix) with SMTP id C9824BD5A3 for ; Tue, 19 Jul 2005 21:46:12 +0700 (WIT) Received: from vlsi.itb.ac.id (ic.vlsi.itb.ac.id [167.205.65.54]) by mx1.itb.ac.id (Postfix) with SMTP id 94126BD537 for ; Tue, 19 Jul 2005 21:46:12 +0700 (WIT) Received: (qmail 23580 invoked by uid 4061); 19 Jul 2005 14:46:17 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 19 Jul 2005 14:46:17 -0000 Date: Tue, 19 Jul 2005 14:46:00 -0000 From: Indra Antonius Simalango To: In-Reply-To: <1121783251.1835.ezmlm@ecos.sourceware.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [ECOS] a question about removing file function in eCos programming X-SW-Source: 2005-07/txt/msg00184.txt.bz2 deal all, Below are my quote snippet. It terminate previous page if page number is non-zero and start next output page if page number is non-negative. If page is -1 removes the most recently opened file. Returns 0 if OK, 2 on errors. ----------------------------------------------------------------------- int wrpage ( OFILE *f, int page ) { int err=0 ; err = nextopage ( f, page ) ; if ( ! err && page == -1 ) { if ( remove ( f->cfname ) ) { err = msg ( "ES2can't delete file %s:", f->cfname ) ; } else { msg ( "Fremoved %s", f->cfname ) ; } } return err ; } ----------------------------------------------------------------------- I've successfully compiled and linked it in linux, but I've found error while linking it in eCos v2.0 with this error message : file.o : In function 'wrpage' : file.o(.text+0x69a):undefined reference to 'remove' Is 'remove' function really undefined in eCos? -- regards, IndrA on 21:31, Jul 19 http://ic.ee.itb.ac.id/~antonius -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss