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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
I've got the same problem, it happens on both 2.4.0 and 2.4.12.
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