how to start with rdkit in c++ #3734
-
Here is https://rdkit.org/docs/GettingStartedInC++.html tutorial how to start with RDKit in C++ but there is nothing about how to set environment/compilation flags, so I started with conda env, g++ and example1.cpp from https://github.com/rdkit/rdkit/blob/master/Docs/Book/C%2B%2BExamples/example1.cpp
It seems that ld cannot fine RDKit library to link with so I tried several option and finally found one which works:
And it works! When I started writing I was sure this will end with question but fortunately I did it. If you want comment how can I do this better (trying all lib and checking what happen is probably slightly suboptimal) please do. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We don't currently have an easy way to know which library you should be linking against aside from the general rule that if you are #include'ing something you probably need to link against the corresponding library. FWIW: Your final example command line matches more or less what I would do. |
Beta Was this translation helpful? Give feedback.
-
I believe that this has been answered, so I'm marking it as such. |
Beta Was this translation helpful? Give feedback.
We don't currently have an easy way to know which library you should be linking against aside from the general rule that if you are #include'ing something you probably need to link against the corresponding library.
FWIW: Your final example command line matches more or less what I would do.