Cristi, if you're following build instructions correctly, then they may have a problem, although my bet is that you're missing something. It's better trying to fix the real cause instead of workaround it, it may just keep snowballing. So have you noted the macro below? For some reason your setup is not finding string.h, it seems. Possibly some include path mess?

#if   defined ZZIP_HAVE_STRING_H
#include <string.h>
#elif defined ZZIP_HAVE_STRINGS_H
#include <strings.h>
#endif

Well I followed your advice and I changed stricmp back to 'strcasecmp' so 'mapped.c' related errors are not a concern at the moment. So now, why can't gcc find 'strcasecmp' in 'stat.c' when there's an obvious include line there for string.h where it is defined?

2013/9/15 Renato Silva <br.renatosilva@gmail.com>

Cristi, if you're following build instructions correctly, then they may have a problem, although my bet is that you're missing something. It's better trying to fix the real cause instead of workaround it, it may just keep snowballing. So have you noted the macro below? For some reason your setup is not finding string.h, it seems. Possibly some include path mess?

#if   defined ZZIP_HAVE_STRING_H
#include <string.h>
#elif defined ZZIP_HAVE_STRINGS_H
#include <strings.h>
#endif


>
> strcasecmp is an inline function defined in string.h.  I'm guessing
> that stat.c didn't include string.h, so you are getting this error.
> Including a header where a function is defined or declared is pretty
> basic.

The <string.h> is included but anyways I replaced 'strcasecmp' with 'stricmp' which is supposed to do be case insensitive as well. Now I get another error which I can't even a error message for it, please see img , Also if anyone wants to inspect the file and help me figure out the issue please check it here .

Thanks again!

 

strcasecmp is an inline function defined in string.h.  I'm guessing
that stat.c didn't include string.h, so you are getting this error.
Including a header where a function is defined or declared is pretty
basic.

The <string.h> is included but anyways I replaced 'strcasecmp' with 'stricmp' which is supposed to do be case insensitive as well. Now I get another error which I can't even a error message for it, please see img , Also if anyone wants to inspect the file and help me figure out the issue please check it here .

Thanks again!


 


2013/9/14 Eli Zaretskii <eliz@gnu.org>
> Date: Sat, 14 Sep 2013 22:30:32 +0300
> From: Cristi Dinescu <crdinescu@gmail.com>
>
> I'm trying to compile zziplib using MinGW and MSYS on Windows and I get
> some errors, screenshot here<http://img198.imageshack.us/img198/5708/ri8m.png>
>  .
>
> Any ideas?

strcasecmp is an inline function defined in string.h.  I'm guessing
that stat.c didn't include string.h, so you are getting this error.
Including a header where a function is defined or declared is pretty
basic.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe