This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: a question about removing file function in eCos programming
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Indra Antonius Simalango <indra at vlsi dot itb dot ac dot id>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 19 Jul 2005 17:15:42 +0200
- Subject: Re: [ECOS] a question about removing file function in eCos programming
- References: <1121783251.1835.ezmlm@ecos.sourceware.org> <Pine.LNX.4.33.0507192131360.23508-100000@ic.vlsi.itb.ac.id>
> 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?
Yes, use unlink() instead, or rmdir() is you are trying to delete a
directory. remove is just a wrapper around these two functions.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss