This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a question about removing file function in eCos programming


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]