Closed AvnerCohen closed 5 years ago
@izderadicka With reference to https://github.com/izderadicka/pdfparser/issues/18
Played with this for a bit, it seems like more of an API difference, and not specific build params
GooString.getCString should return a const char * , rather than char * https://github.com/izderadicka/pdfparser/blob/master/pdfparser/poppler.pyx#L27
const char *
char *
So changing this line to: const char *getCString()
const char *getCString()
Solved the issue for me.
It seems like this is the poppler commit (2010) that changed this API: https://github.com/danigm/poppler/commit/a28be8e4009b86fdfd92da928def194225a736c6
Maybe Mac default c++ compiler is just more strict about this?
@izderadicka any chance this can be merged and published to pypi ?
Thanks!
@izderadicka With reference to https://github.com/izderadicka/pdfparser/issues/18
Played with this for a bit, it seems like more of an API difference, and not specific build params
GooString.getCString should return a
const char *
, rather thanchar *
https://github.com/izderadicka/pdfparser/blob/master/pdfparser/poppler.pyx#L27So changing this line to:
const char *getCString()
Solved the issue for me.
It seems like this is the poppler commit (2010) that changed this API: https://github.com/danigm/poppler/commit/a28be8e4009b86fdfd92da928def194225a736c6
Maybe Mac default c++ compiler is just more strict about this?