brechtsanders / xlsxio

XLSX I/O - C library for reading and writing .xlsx files
MIT License
417 stars 112 forks source link

Why it is impossible to combine two libraries libxlsxio_read and libxlsxio_write into one? #49

Closed vic7tar closed 5 years ago

vic7tar commented 5 years ago

Thank you for your work. If possible, I have two questions. Why it is impossible to combine two libraries libxlsxio_read and libxlsxio_write into one? For building under Windows 32-bit, you use MinGW-w64 under the shell of MSYS2. Can you post a build file?

brechtsanders commented 5 years ago

If you need both read and write functionality you can link with both libraries. It was split in 2 to keep projects that only use one of those functionalities smaller.

The CMake build file is already there and it's designed to work well with MSYS2 and MinGW-w64. Also a basic Makefile is included in case you don't have CMake, but CMake is the preferred way. See section "Building from source" in README.md for building instructions.