Skip to content
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

undefined reference to `Lucene::Document::Document()' #114

Open
ShangHong-CAI opened this issue Oct 28, 2018 · 0 comments
Open

undefined reference to `Lucene::Document::Document()' #114

ShangHong-CAI opened this issue Oct 28, 2018 · 0 comments

Comments

@ShangHong-CAI
Copy link

I want to add Demo function to my project,but I only add
DocumentPtr doc = newLucene<Document>();
to my code,and I have error.

g++ -std=c++11  -I/usr/local/include/ -I/usr/local/include/lucene++ main.1.cpp -o test.out -lboost_system -L/usr/local/lib/
/tmp/ccFsKMbz.o: In function `boost::detail::sp_if_not_array<Lucene::Document>::type boost::make_shared<Lucene::Document>()':
main.1.cpp:(.text._ZN5boost11make_sharedIN6Lucene8DocumentEJEEENS_6detail15sp_if_not_arrayIT_E4typeEDpOT0_[_ZN5boost11make_sharedIN6Lucene8DocumentEJEEENS_6detail15sp_if_not_arrayIT_E4typeEDpOT0_]+0x77): undefined reference to `Lucene::Document::Document()'
collect2: error: ld returned 1 exit status
makefile:6: recipe for target 'test' failed
make: *** [test] Error 1

Can someone tell me what happen to this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant