FS#54595 - [tinyxml2] linking fails with undefined reference
Attached to Project:
Community Packages
Opened by Johannes Pointner (h4nn35) - Monday, 26 June 2017, 12:13 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 30 June 2017, 15:56 GMT
Opened by Johannes Pointner (h4nn35) - Monday, 26 June 2017, 12:13 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 30 June 2017, 15:56 GMT
|
Details
Description:
linking against tinyxml2 fails with /usr/include/tinyxml2.h:1807: undefined reference to `tinyxml2::StrPair::GetStr()' Additional info: tinyxml2 5.0.0-1 But also compiling the library with an older version(4.0.1) doesn't solve the problem. But using the tinyxml2 from the archive works. So I'm guessing it could be gcc + tinyxml2 issue? Steps to reproduce: Link against libtinyxml2 and use e.g. XMLDocument::GetErrorStr1() |
This task depends upon
To show the problem I attached a simple example.