-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template instantiation #7
Comments
Hi, How do you use Pololineencoder? Do you build it as a library and link your application to it, or you build UPD: The error you see indicates a missing symbol. It might be that you don't build the corresponding .cpp file that contains the function definitions. |
I simply build All compilations steps are OK, only the linking fails. It makes sense because when building my client file the compiler has an incomplete view of the |
Ah, I see. The problem is that
Ok, thank you for reporting this. I will take care of it. |
That would solve the problem with the additional advantage of making it easier to include as header-only from the point of view of a downstream project. |
Thanks for the quick fix! Just reporting that I updated with the header-only version and it works fine. 👍 |
Hi Julien, Thank you once more for reporting this issue and confirming the fix. I hope the code will work good for your project. Cheers, |
Thanks again for the fix. FYI, the purpose on my side is to toy around with the polyline output of the Valhalla routing engine in a project handling vehicle routing problems: VROOM-Project/vroom#461. |
Thanks for sharing. Good luck with your project. |
First of all many thanks for providing this useful C++ implementation!
This is more of a question/comment than a real issue: I'm trying to use the code as a dependency in my project and my own code compiles just fine when building and including
polylineencoder.h
. But then I'm experiencing errors for all of the used functions at linking stage, e.g.I solved this by explicitly forcing the instantiation for precision values I need. Adding at the end of
polylineencoder.cpp
:Is this the expected way to use the project from elsewhere? If so, maybe it would be worth mentioning in the README.
The text was updated successfully, but these errors were encountered: