I am quite sure the new SDK is great, but ..?
I get undefined references to DeleteFile & SetFileDate
dos.doc still mentions DeleteFile and SetFileDate but they don't appear any more as library functions
SEE ALSO
GetVar(), SetVar(), FindVar(), DeleteFile(), <dos/var.h>
SEE ALSO
DateToStr(), StrToDate(), SetFileDate(), CompareDates(),
SecondsToDateStamp(), DateStampToSeconds()
Some defines disappeared too
dosextens.h (old)
#define cli_CommandDir cli_PathList /* old source compatibility - disappeared*/
dos.h (old)
#define LOCK_SAME_HANDLER LOCK_SAME_VOLUME
New SDK dos.library/DeleteFile and /SetFileDate gone?
- salass00
- AmigaOS Core Developer
- Posts: 534
- Joined: Sat Jun 18, 2011 4:12 pm
- Location: Finland
- Contact:
Re: New SDK dos.library/DeleteFile and /SetFileDate gone?
Either add "#include <dos/obsolete.h>" to your code or switch to the new names:
DeleteFile() -> Delete()
SetFileDate() -> SetDate()
The old function names were misleading since they apply to directories as well as files.
DeleteFile() -> Delete()
SetFileDate() -> SetDate()
The old function names were misleading since they apply to directories as well as files.