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

Framet

1 Answer

+1 vote
answered by (191 points)
edited by
Framet,

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

Welcome to X-Plane Q&A, where you can ask support questions and get answers from members of the community.

This site is for X-Plane support questions only. Please search for existing answers before posting your question. Off-topic questions will be locked.

If you’re new, you’ll need to register before asking your first question.

If your question is answered, click on the check mark to select the best response.

Categories

...