splatlab / squeakr

Squeakr: An Exact and Approximate k -mer Counting System
BSD 3-Clause "New" or "Revised" License
85 stars 23 forks source link

error: unknown type name gzFile_s on macOS 10.11 El Capitan #4

Closed sjackman closed 7 years ago

sjackman commented 7 years ago

gzFile_s is not defined by zlib 1.2.5 on macOS 10.11 El Capitan. It is defined by zlib 1.2.11 on Homebrew. Better to use gzFile rather than gzFile_s* if possible.

❯❯❯ make
g++ -std=c++11 -Wall   -Ofast -msse4.2 -D__SSE4_2_ -m64 -I/Users/sjackman/.homebrew/include -I/Users/sjackman/.homebrew/opt/openssl/include -I. -Wno-unused-result -Wno-strict-aliasing -Wno-unused-function  main.cc -c -o main.o
In file included from main.cc:49:
./reader.h:35:21: error: unknown type name 'gzFile_s'; did you mean 'gzFile'?
                        reader(FILE *in, gzFile_s *in_gzip, BZFILE *in_b...
                                         ^~~~~~~~
                                         gzFile
/usr/include/zlib.h:1172:15: note: 'gzFile' declared here
typedef voidp gzFile;       /* opaque gzip file descriptor */
              ^
In file included from main.cc:49:
prashantpandey commented 7 years ago

Pushed the required code changes.

sjackman commented 7 years ago

Thanks for merging, Prashant.