This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [MinGW-w64]Build gdb/ctf.c failed


On 03/25/2013 08:57 AM, asmwarrior wrote:
'_mkdir' [-Werror=implicit-function-declaration]
cc1.exe: all warnings being treated as errors
make[2]: *** [ctf.o] Error 1


I installed mingw-w64-bin_i686-linux_20121031.tar.bz2 on my box and is able to reproduce this failure.

I found that _mkdir was declared in the file: direct.h in MinGW-w64 SDKs:
_CRTIMP int __cdecl _mkdir(const char *_Path);


I checked the msdn, and it says that "_mkdir" should be in <direct.h>.
http://msdn.microsoft.com/en-us/library/2fkk4dzw(v=vs.80).aspx
so looks mingw-w64 doesn't do something wrong.

I am not familiar with mingw and mingw-64, and I'd like people familiar with mingw (Eli?) suggest what is appropriate fix to this issue. Maybe, we either have to include <direct.h> (with autconf checking) or import mkdir module in gnulib.

--
Yao (éå)


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