-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi,
I am trying to port basic functionality of libgeodesk to Perl, which is a zigzag process :)
At some stage it kept complaining that TagValues::EMPTY_TABLE_STRUCT was undefined symbol, although I could see it as a constant in the symbol table of the linked library libgeodesk.so/a.
What solved my problem was these 2 edits:
- In file
src/feature/TagTablePtr.cpparound line 18, comment as per the following:
/**
* A construct that simulates a pointer to an empty tag-table.
* The first word is a relative pointer to the second word (4),
* the second word is the empty-table marker itself.
*/
//const uint32_t TagValues::EMPTY_TABLE_STRUCT[2] = { 4, TagValues::EMPTY_TABLE_MARKER };
//const double TagValues::SCALE_FACTORS[] = { 1.0, 0.1, 0.01, 0.001 };
- In file
include/geodesk/feature/TagValues.haround line 33, replacestatic const uint32_t EMPTY_TABLE_STRUCT[2];withstatic constexpr uint32_t EMPTY_TABLE_STRUCT[2] = { 4, TagValues::EMPTY_TABLE_MARKER };and replacestatic const double SCALE_FACTORS[];withstatic constexpr double SCALE_FACTORS[] = { 1.0, 0.1, 0.01, 0.001 };.
With the above changes I run the tests (after changing all the different gol files to a single one I have installed in my system) and they seem to be OK (4 fail because gol's contents are not what expected, obviously).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels