|
From: Greg C. <chi...@co...> - 2005-12-15 14:53:19
|
On 2005-12-15 14:32 UTC, Benoît Rouits wrote: > > i try to compile an application which use the fnmatch() function. > but i don't have fnmatch.h in my mingw environment, but i have the > libiberty.a > > also, i see the GNU string.h have an index() function in string.h, but > mingw doesn't have it. anyway, as index() is totally compliant with > strchr() i changed to strchr, but if i could use index(), it would be > better since i am not the author of the program i try to compile. Those functions aren't standard C. They're in posix, but msw isn't posix, and MinGW doesn't make it so. If you don't want to change the program's sources, then you could try cygwin, which emulates posix. Or you could use standard-C functions like strchr(), and msw equivalents for non-standard-C functions: FindFirstFile() in this case. Even if you can use fnmatch() by providing a prototype and linking a library that provides it, it might not do what you'd expect with native msw paths. |