I have problems with compiling file and libmagic ("file" source package from gnuwin32).
I am using the latest mingw Win32 package (gnu gcc, g++, make) and nasm. I cannot use msys nor cygwin, and I have to write my own make file, as we use a xml style makefile which get parsed by a tool called "rbuild" which generates a proper makefile afterwards. Build output: [CC] me\magic\apprentice.c <command line>:1:6: warning: missing whitespace after the macro name <command line>:1:7: warning: missing whitespace after the macro name <command line>:1:7: warning: missing whitespace after the macro name <command line>:1:1: warning: "enable" redefined <command line>:1:1: warning: this is the location of the previous definition <command line>:1:6: warning: missing whitespace after the macro name <command line>:1:7: warning: missing whitespace after the macro name <command line>:1:1: warning: "enable" redefined <command line>:1:1: warning: this is the location of the previous definition In file included from me\magic\apprentice.c:32: me\magic\/file.h:49:19: error: regex.h: No such file or directory In file included from me\magic\apprentice.c:34: C:/RosBE/4.1.3/include/stdlib.h:319: error: conflicting types for 'strtol' C:/RosBE/4.1.3/include/stdlib.h:318: error: previous declaration of 'strtol' was here In file included from me\magic\apprentice.c:38: C:/RosBE/4.1.3/include/string.h:47: error: expected identifier or '(' before 'in t' C:/RosBE/4.1.3/include/string.h:47: error: expected ')' before '>=' token C:/RosBE/4.1.3/include/string.h:47: error: expected ')' before '?' token mingw32-make: *** [obj-i386\me\magic\apprentice.o] Error 1 ("RosBE" is just the name of the build environment; it's basically just mingw (gcc, g++, make) plus nasm.) my "makefile" (rbuild xml file): <module name="libmagic" type="win32dll" entrypoint="0" baseaddress="0x620C0000" installbase="system32" installname="magic1.dll" allowwarnings="true"> <importlibrary definition="magic.def" /> <library>ntdll</library> <library>kernel32</library> <library>msvcrt</library> <library>user32</library> <library>crtdll</library> <library>wsock32</library> <library>uuid</library> <library>pcre3</library> <library>zlib1</library> <define name="__USE_W32API" /> <define name="_WIN32" /> <define name=" __WIN32__" /> <define name="force-exe-suffix" /> <define name="enable-auto-import" /> <define name="enable-runtime-pseudo-reloc" /> <define name="allow-multiple-definition" /> <define name="enable-stdcall-fixup" /> <include base="pcre3">.</include> <include base="zlib">.</include> <file>apprentice.c</file> <file>apptype.c</file> <file>ascmagic.c</file> <file>compress.c</file> <file>fsmagic.c</file> <file>funcs.c</file> <file>is_tar.c</file> <file>magic-dll-res.rc</file> <file>magic-dllversion.c</file> <file>magic.c</file> <file>print.c</file> <file>readelf.c</file> <file>softmagic.c</file> </module> I have downloaded both the "scr" and "lib" packages, and I have successfully built already in the same way pcre3 and zlib. What's the "regex.h" file? Where can I download this one? I have already built pcre3 (also source from gnuwin32) and there is no regex.h file there nor in mingw. And why does it has issues with stdlib.h and string.h? Do I have missed something? Any suggestions how to solve the build issues? Thanks in advance. Best regards, Klemens Friedl ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users