Problems compiling loki from sources

Asked by Victor Eijkhout

Anton,

in https://answers.launchpad.net/yade/+question/643703 you state:

" loki library should probably replaced by standard C++ constructions in Yade"

I agree. Have you guys released a Yade that does not depend on a package that was last updated in 2009?

Reason for asking is that I need to compile from source and loki no longer compiles with modern compiler versions.

Here's what happens:

In file included from ../../include/loki/Function.h:22:0,
                 from FunctionTest.cpp:50:
../../include/loki/Functor.h:1180:11: note: class Loki::bad_function_call

but this function has moved to the standard library so it's now ambiguous.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Victor Eijkhout
Solved:
Last query:
Last reply:
Revision history for this message
Gary Pekmezi (gpekmezi) said :
#1

Hi,

Perhaps I've been doing it wrong, but when compiling from source I do not compile loki. I merely point cmake to the location of its /include and /lib folders (I do so by editing the CMakeCache.txt file).

Revision history for this message
Victor Eijkhout (eijkhout) said :
#2

"the location of its /include and /lib folders"

What does "its" refer to? Loki? So where do you get these include and lib folders?

Victor.

Revision history for this message
Gary Pekmezi (gpekmezi) said :
#3

Victor,

Apologies, it occurs to me that what I’m doing is a way to get around CMake errors to build Yade without the features I don’t need. You may very well need these features, in which case someone more experienced should be more helpful.

Revision history for this message
Victor Eijkhout (eijkhout) said :
#4

Ok, it seems like I can compile Loki by pretending the last 20 years of C++ development never happened. In other words: compile with std=c++98.