mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #141] Static link error #117
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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
@jmcnamara commented on GitHub (Feb 3, 2018):
Fix added on master branch.
@jmcnamara commented on GitHub (Feb 11, 2018):
Added in version 0.7.6. Closing.