This site is being deprecated.

Please see the official X‑Plane Support page for help.

0 votes
asked by (29 points)
Hi guys

In my plugin I want to convert a double to string with specified precision.
To achieve this i need std::stringstream which requires #include <sstream>

However when I use this x-plane cannot load my plugin due to missing libraries. But sstream is a standart library.

Can you guys guide me to a possible solution to fix this?

Best regards


1 Answer

+1 vote
answered by (253 points)
edited by

Try using sprintf function instead in iostream. It works ok in my plugin.

Happy flying.
commented by (29 points)
Thank you!

Will give it a try tomorrow :D