You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation with recent GCC versions causes errors. The typedef in src/pyedfread/edf_read.pyx does not seem to be taking effect:
cdef extern from "edf.h":
ctypedef int EDFFILE
int * edf_open_file(
const char * fname,
int consistency,
int load_events,
int load_samples,
int * errval,
)
int edf_get_preamble_text_length(EDFFILE * edf)
int edf_get_preamble_text(EDFFILE * ef, char * buffer, int length)
int edf_get_next_data(EDFFILE * ef)
ALLF_DATA * edf_get_float_data(EDFFILE * ef)
int edf_get_element_count(EDFFILE * ef)
int edf_close_file(EDFFILE * ef)
Compilation causes errors such as:
src/pyedfread/edf_read.c:21365:39: error: passing argument 1 of ‘edf_get_float_data’ from incompatible pointer type [-Wincompatible-pointer-types]
21365 | __pyx_v_fd = edf_get_float_data(__pyx_v_ef);
| ^~~~~~~~~~
| |
| int *
/usr/include/EyeLink/edf.h:362:58: note: expected ‘EDFFILE *’ but argument is of type ‘int *’
I don't know enough about compilation with GCC, do you think this is something worth diving into to fix properly, or is your workaround something we could just merge?
Compilation with recent GCC versions causes errors. The typedef in src/pyedfread/edf_read.pyx does not seem to be taking effect:
Compilation causes errors such as:
Temporary Workaround:
Add compile flag -Wno-incompatible-pointer-types
I.e. in setup.py:
The text was updated successfully, but these errors were encountered: