Skip to content

Issue at the last step when compiling the code #1

@xuanchien

Description

@xuanchien

Hi, I got the following error while compiling the code following the guideline in README. Do you have any ideas what can be the cause here?

[ 96%] Built target cnn_shared
[ 96%] Built target cnn
Scanning dependencies of target lstm-parse
[ 98%] Building CXX object parser/CMakeFiles/lstm-parse.dir/lstm-parse.cc.o
[100%] Linking CXX executable lstm-parse
Undefined symbols for architecture x86_64:
  "cpyp::Corpus::PR_UNK", referenced from:
      ParserBuilder::log_prob_parser(cnn::ComputationGraph*, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&, std::__1::map<int, unsigned int, std::__1::less<int>, std::__1::allocator<std::__1::pair<int const, unsigned int> > > const&, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&, double*) in lstm-parse.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [parser/lstm-parse] Error 1
make[1]: *** [parser/CMakeFiles/lstm-parse.dir/all] Error 2
make: *** [all] Error 2

I am using Mac OSX (version OS X 10.10.5)

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions