INCF / MUSIC

MUSIC, the MUltiSimulation Coordinator
GNU General Public License v3.0
37 stars 37 forks source link

MUSIC code not C++11 compliant #28

Closed heplesser closed 8 years ago

heplesser commented 8 years ago

When compiling with g++ 6, compilation fails with

../../music/src/connectivity.cc: In member function 'MUSIC::ConnectivityInfo* MUSIC::Connectivity::info(std::__cxx11::string)':

../../music/src/connectivity.cc:110:14: error: invalid conversion from 'int' to 'MUSIC::ConnectivityInfo*' [-fpermissive]

       return NO_CONNECTIVITY;

This seems to be due to stricter typing rules in C++11. As a work-around, one can compile this file with -std=c++98, but I suppose this should be fixed properly.

See also #22, #24.

mdjurfeldt commented 8 years ago

Try to do a git pull and see if the problem is resolved. Best regards, M.

heplesser commented 8 years ago

@mdjurfeldt This solves the compilation problems, it seems. I get link problems, but will report those elsewhere.