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

Dact won't compile with DbXML version 2 #135

Open
pebbe opened this issue Jan 3, 2018 · 4 comments
Open

Dact won't compile with DbXML version 2 #135

pebbe opened this issue Jan 3, 2018 · 4 comments

Comments

@pebbe
Copy link
Member

pebbe commented Jan 3, 2018

/net/aps/haytabo/src/dact/src/XPathValidator.cpp:14:45: fatal error: xqilla/ast/XQFunctionCoercion.hpp: No such file or directory

@danieldk
Copy link
Member

danieldk commented Jan 3, 2018

There is the dbxml-2.5.16 branch that supports the old XQilla.

@pebbe
Copy link
Member Author

pebbe commented Feb 5, 2020

Using the dbxml-2.5.16 branch, compiling against dbxml version 2, and against alpinocorpus compiled against dbxml version 2, I get this error:

[ 38%] Building CXX object CMakeFiles/dact.dir/src/BracketedDelegates/BracketedDelegate.cpp.o
In file included from /net/aps/haytabo/src/dact/include/BracketedDelegate.hh:10:0,
                 from /net/aps/haytabo/src/dact/src/BracketedDelegates/BracketedDelegate.cpp:10:
/net/aps/haytabo/opt/alpinocorpus/include/AlpinoCorpus/CorpusReader.hh:70:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
         std::shared_ptr<IterImpl> d_impl;
              ^
/net/aps/haytabo/opt/alpinocorpus/include/AlpinoCorpus/CorpusReader.hh:164:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
     std::shared_ptr<std::string> d_type;
          ^
CMakeFiles/dact.dir/build.make:427: recipe for target 'CMakeFiles/dact.dir/src/BracketedDelegates/BracketedDelegate.cpp.o' failed

@pebbe
Copy link
Member Author

pebbe commented Feb 7, 2020

I fixed the shared_ptr issue like this.

In CMakeLists.txt, after the line project(DACT) I added this line:

set (CMAKE_CXX_STANDARD 11)

pebbe added a commit that referenced this issue Feb 7, 2020
@danieldk
Copy link
Member

danieldk commented Feb 7, 2020

Thanks! I guess that problem is that I moved to C++11 in alpinocorpus at some point and that this branch did not move with it. master does set the compiler version to C++11.

BTW. newer g++ (IIRC >= 6.1) default to the gnu++14 standard. But it's good to be explicit anyway.

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

2 participants