openbabel / openbabel/openbabel
How to use openbabel as c++ library on windows with visual studio 2019
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 488
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 1
Description
Dear everyone
I apologize if this already has been answered, but i really feel like there is missing a very important documentation on using openbabel 3-1-1 to develop software on a windows machine using visual studio. I am still a rookie at c++, but am doing a project where i need to use openbabel as a library. What shall i compile and how to use the c++ code?
I am currently downloading the source and adding the include folder to "additional include directories" in my c++ project. I then run the following code:
#include
#include "openbabel/atom.h"
int main()
{
return 0;
}
And i get the following error:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'openbabel/atom.h': No such file or directory OBtest C:\Users\VR2\Documents\CPP_Projects\Openbabel_test\OBtest\Source.cpp 2
I feel like i am missing some .lib file to link to or some .sln file to compile the library.
Appreaciate your time.
Kind regards
Zan
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Open Babel source and the include folder mentioned in the report, then reproduce the missing-header error from Source.cpp in Visual Studio 2019. Document what must be compiled, which include and library paths are required, and how a C++ project can verify a successful setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100