Closed mdav2 closed 4 years ago
I am also unable to compile even a minimal program with initialize
and finalize
calls. I'm getting the following error:
(base) mmd01986@davis-ws:~/Dropbox/dev/cxxwraptest/test2$ g++ test.cc -I/usr/local/include -I/usr/local/include/libint2 -L/usr/local/lib -I/usr/include/eigen3/ -I/home/mmd01986/.julia/artifacts/d54a2909808f0f05123ef98f8eef4fcde1073e52/include -I/home/mmd01986/Dropbox/bin/julia-1.4.1/include/julia/
/tmp/ccCRBqKR.o: In function `libint2::detail::__initializer::__initializer()':
test.cc:(.text._ZN7libint26detail13__initializerC2Ev[_ZN7libint26detail13__initializerC5Ev]+0xd): undefined reference to `libint2_static_init'
/tmp/ccCRBqKR.o: In function `libint2::detail::__initializer::~__initializer()':
test.cc:(.text._ZN7libint26detail13__initializerD2Ev[_ZN7libint26detail13__initializerD5Ev]+0xd): undefined reference to `libint2_static_cleanup'
collect2: error: ld returned 1 exit status
Perhaps these two issues are related?
I have no idea how, but the problem seems to have resolved itself. 🤷♂️
Those are the best kinds of problems ;-) Thanks for trying and reporting. Glad it's working now.
On Sun, May 31, 2020 at 3:08 PM Matthew McAllister Davis < notifications@github.com> wrote:
I have no idea how, but the problem seems to have resolved itself. 🤷♂️
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evaleev/libint/issues/175#issuecomment-636514476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQXIZYXISNVSCH5K343XE3RUKTL5ANCNFSM4NO7PCBA .
-- web: valeyev.net
I am trying to work on a Julia interface for Libint2. After struggling with the C API for a few weeks I'm trying the C++ API and CxxWrap.jl . However, I am unable to use cmake to even find the library (it was properly installed with
cmake --build . --target install
). Admittedly, I am a novice with C++/cmake, but I after reading the wiki a number of times I don't see anything wrong with my simple example:contents of CMakeLists.txt (minimal example):
Which produces the following result,
It goes on like that for a while.
Any guidance on solving this issue would be appreciated.