Registered Member
|
This code works with windows visual studio does not on linux (ubuntu) with code blocks gcc compiler:
errors: ||=== Build: all in OMD (compiler: GNU GCC Compiler) ===| /home/john/omd/trunk/src/States.cpp||In member function ‘void OMD::States::calcIndependentStates(OMD::MatNxN, OMD::MatNxN)’:| /home/john/omd/trunk/src/States.cpp|232|error: ‘jacobian’ cannot appear in a constant-expression| /home/john/omd/trunk/src/States.cpp|232|error: a function call cannot appear in a constant-expression| any help would be appreciated. thanks |
Moderator
|
Either compile in C++11 (-std=c++11) or insert a space between the double ">>":
|
Registered Member
|
that worked, thank you.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]