[GH-ISSUE #141] Static link error #117

Closed
opened 2026-05-05 11:42:29 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @tdmartin102 on GitHub (Jan 12, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/141

Originally assigned to: @jmcnamara on GitHub.

I am Using Xcode 9.2 and CocoaPods. This library would not compile for me The issue is probably a compiler setting but a easy code fix is casting. in worksheet.c:26010, 2611, 2621,2622 a macro is used such as:

lxw_col_t span_col_min = RB_MIN(lxw_table_cells, row->cells)->col_num;

casting eliminates the error

lxw_col_t span_col_min = ((lxw_cell*)RB_MIN(lxw_table_cells, row->cells))->col_num;

mind you this should be a warning not an error. If I knew the compiler flag to prevent this error I would use that. Also perhaps this should apply to CocoaPods and not you. This is my very first use of CocoaPods, so if this is the wrong place, just let me know and I'll pester them instead.

Originally created by @tdmartin102 on GitHub (Jan 12, 2018). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/141 Originally assigned to: @jmcnamara on GitHub. I am Using Xcode 9.2 and CocoaPods. This library would not compile for me The issue is probably a compiler setting but a easy code fix is casting. in worksheet.c:26010, 2611, 2621,2622 a macro is used such as: `lxw_col_t span_col_min = RB_MIN(lxw_table_cells, row->cells)->col_num;` casting eliminates the error `lxw_col_t span_col_min = ((lxw_cell*)RB_MIN(lxw_table_cells, row->cells))->col_num;` mind you this should be a warning not an error. If I knew the compiler flag to prevent this error I would use that. Also perhaps this should apply to CocoaPods and not you. This is my very first use of CocoaPods, so if this is the wrong place, just let me know and I'll pester them instead.
gitea-mirror 2026-05-05 11:42:29 -06:00
Author
Owner

@jmcnamara commented on GitHub (Jan 15, 2018):

Hi Tom,

Thanks for the report.

I can reproduce it with clang scan-build, although not with clang itself or gcc. I'll put in the cast to fix it.

Regards,

John

<!-- gh-comment-id:357633045 --> @jmcnamara commented on GitHub (Jan 15, 2018): Hi Tom, Thanks for the report. I can reproduce it with clang scan-build, although not with clang itself or gcc. I'll put in the cast to fix it. Regards, John
Author
Owner

@jmcnamara commented on GitHub (Feb 3, 2018):

Fix added on master branch.

<!-- gh-comment-id:362835215 --> @jmcnamara commented on GitHub (Feb 3, 2018): Fix added on master branch.
Author
Owner

@jmcnamara commented on GitHub (Feb 11, 2018):

Added in version 0.7.6. Closing.

<!-- gh-comment-id:364802368 --> @jmcnamara commented on GitHub (Feb 11, 2018): Added in version 0.7.6. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#117
No description provided.