Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print_bed() and hsearch_r #95

Open
dputhier opened this issue Jan 12, 2019 · 3 comments
Open

print_bed() and hsearch_r #95

dputhier opened this issue Jan 12, 2019 · 3 comments

Comments

@dputhier
Copy link
Owner

Unfortunately it seems that hsearch_r is not part of OSX libs:

pygtftk/src/libgtftk/column.c:67:2: warning: implicit declaration of function 'hsearch_r' is invalid in C99 [-Wimplicit-function-declaration]
        hsearch_r(e, FIND, &ep, column_rank);
        ^
pygtftk/src/libgtftk/column.c:178:11: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
        e.data = (void *)i;
                 ^
pygtftk/src/libgtftk/column.c:189:50: error: invalid application of 'sizeof' to an incomplete type 'struct hsearch_data'
                column_rank = (struct hsearch_data *)calloc(1, sizeof(struct hsearch_data));
                                                               ^     ~~~~~~~~~~~~~~~~~~~~~
pygtftk/src/libgtftk/column.c:27:15: note: forward declaration of 'struct hsearch_data'
extern struct hsearch_data *column_rank;
              ^
pygtftk/src/libgtftk/column.c:190:3: warning: implicit declaration of function 'hcreate_r' is invalid in C99 [-Wimplicit-function-declaration]
                hcreate_r(9, column_rank);
@fafa13
Copy link
Collaborator

fafa13 commented Jan 14, 2019 via email

@dputhier
Copy link
Owner Author

I admit that this is **** annoying...

@fafa13
Copy link
Collaborator

fafa13 commented Jan 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants