[ECOS] a question about removing file function in eCos programming

Andrew Lunn andrew@lunn.ch
Tue Jul 19 15:16:00 GMT 2005


> 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



More information about the Ecos-discuss mailing list