Menu

libarchive on Windows

Help
2007-12-03
2012-07-26
  • David Topham

    David Topham - 2007-12-03

    Hi

    I'm trying to build libarchive on Windows. I'm getting the following errors from archive_write_export.c:

    libarchive/archive_write_set_format.c:44: error: initializer element is not constant
    libarchive/archive_write_set_format.c:44: error: (near initialization for codes[0].setter') libarchive/archive_write_set_format.c:44: error: initializer element is not constant libarchive/archive_write_set_format.c:44: error: (near initialization forcodes[0]')
    libarchive/archive_write_set_format.c:45: error: initializer element is not constant
    libarchive/archive_write_set_format.c:45: error: (near initialization for codes[1].setter') libarchive/archive_write_set_format.c:45: error: initializer element is not constant libarchive/archive_write_set_format.c:45: error: (near initialization forcodes[1]')
    libarchive/archive_write_set_format.c:46: error: initializer element is not constant

    I'm using mingw 5.1.3 (which includes gcc 3.4.5) and msys 1.0.10. The code looks fine to me, and builds with gcc versions newer and older on other platforms.

    Anyone else come across this?

    Thnx

    David

     
    • Jarryd Beck

      Jarryd Beck - 2008-04-19

      I've got the same problem, it happens on both 2.4.0 and 2.4.12.

       
    • S/W-DEV

      S/W-DEV - 2008-01-11

      Hi David,

      I am also trying to build libarchive 2.4.0 on windows.

      Could you please share the steps you followed.. Actually I am not a c programmer and I am finding it difficult to build the libarchive.

      I have installed libarchive-2.4.0 src setup,cgywin and MinGW (GCC,win32api and binutils) but I am not sure how to proceed further. I am using a AMD processor m/c.

      I would really appreciate your help.

      Regards,
      Harmeet

       
MongoDB Logo MongoDB