Estou utilizando a biblioteca ptlib para atualizar um projeto qque utilizava a mesma e recebo a seguinte mensagem de erro:
/usr/local/include/ptlib/pdirect.h:467:7: error: expected identifier before numeric constant
/usr/local/include/ptlib/pdirect.h:467:7: error: expected '}' before numeric constant
/usr/local/include/ptlib/pdirect.h:466:5: note: to match this '{'
/usr/local/include/ptlib/pdirect.h:467:7: error: expected unqualified-id before numeric constant
/usr/local/include/ptlib/pdirect.h:466:5: error: 'friend' used outside of class
/usr/local/include/ptlib/pdirect.h:466:5: error: 'Sorting' does not name a type
/usr/local/include/ptlib/pdirect.h:466:5: error: 'friend' used outside of class
/usr/local/include/ptlib/pdirect.h:466:5: error: 'Sorting' does not name a type
/usr/local/include/ptlib/pdirect.h:466:5: error: 'friend' used outside of class
/usr/local/include/ptlib/pdirect.h:466:5: error: 'Sorting' does not name a type
/usr/local/include/ptlib/pdirect.h:466:5: error: 'friend' used outside of class
/usr/local/include/ptlib/pdirect.h:466:5: error: 'Sorting' does not name a type
/usr/local/include/ptlib/pdirect.h:466:5: error: 'Sorting' does not name a type
In file included from /usr/local/include/ptlib.h:69:
/usr/local/include/ptlib/pdirect.h:480:7: error: 'Entries' was not declared in this scope; did you mean 'GetEntries'?
/usr/local/include/ptlib/pdirect.h:480:17: error: 'entries' was not declared in this scope; did you mean 'GetEntries'?
/usr/local/include/ptlib/pdirect.h:481:7: error: 'Sorting' was not declared in this scope
/usr/local/include/ptlib/pdirect.h:482:7: error: expected primary-expression before 'const'
/usr/local/include/ptlib/pdirect.h:483:5: error: expression list treated as compound expression in initializer [-fpermissive]
/usr/local/include/ptlib/pdirect.h:484:10: error: redefinition of 'bool GetEntries'
/usr/local/include/ptlib/pdirect.h:479:10: note: 'bool GetEntries' previously defined here
/usr/local/include/ptlib/pdirect.h:485:7: error: 'Entries' was not declared in this scope; did you mean 'GetEntries'?
/usr/local/include/ptlib/pdirect.h:485:17: error: 'entries' was not declared in this scope; did you mean 'GetEntries'?
/usr/local/include/ptlib/pdirect.h:486:7: error: expected primary-expression before 'const'
/usr/local/include/ptlib/pdirect.h:487:7: error: expected primary-expression before 'const'
/usr/local/include/ptlib/pdirect.h:489:5: error: 'Entries' does not name a type
/usr/local/include/ptlib/pdirect.h:493:5: error: 'Entries' does not name a type
/usr/local/include/ptlib/pdirect.h:500:3: error: expected unqualified-id before 'protected'
In file included from /usr/local/include/ptlib/pdirect.h:512:
/usr/local/include/ptlib/unix/ptlib/pdirect.h:34:3: error: expected unqualified-id before 'protected'
/usr/local/include/ptlib/pdirect.h:515:1: error: expected declaration before '}' token
I'm using the ptlib library to update a project that used it, and I'm receiving the following error message: