I tried to build the latest official version of RCF in combination with the newest version of gcc (4.7.0) :
Code: Select all
cd ./src/RCF
g++ -g -std=c++0x -m64 -Wno-deprecated -I ../../include/ -I/opt/boost_1_49_0 -DRCF_USE_BOOST_ASIO -DRCF_USE_BOOST_THREADS -pthread -fPIC -shared -o libRCF.so RCF.cpp -L/opt/boost_1_49_0/stage/lib -lboost_system
Code: Select all
In file included from ../../include/SF/Archive.hpp:79:0,
from ../../include/SF/Stream.hpp:330,
from ../../include/SF/IBinaryStream.hpp:19,
from ../../include/RCF/Protocol/SF.hpp:21,
from ../../include/RCF/SerializationProtocol.hpp:40,
from ../../include/RCF/Endpoint.hpp:25,
from ../../include/RCF/ClientStub.hpp:30,
from BsdClientTransport.cpp:18,
from RCF.cpp:40:
../../include/SF/Serializer.hpp: In function 'void SF::serializeEnum(SF::Archive&, T&)':
../../include/SF/Serializer.hpp:253:18: error: no match for 'operator&' in 'ar & n'
../../include/SF/Serializer.hpp:253:18: note: candidate is:
In file included from ../../include/SF/Stream.hpp:330:0,
from ../../include/SF/IBinaryStream.hpp:19,
from ../../include/RCF/Protocol/SF.hpp:21,
from ../../include/RCF/SerializationProtocol.hpp:40,
from ../../include/RCF/Endpoint.hpp:25,
from ../../include/RCF/ClientStub.hpp:30,
from BsdClientTransport.cpp:18,
from RCF.cpp:40:
../../include/SF/Archive.hpp:53:21: note: SF::Archive& SF::Archive::operator&(SF::Archive::Flag) <near match>
../../include/SF/Archive.hpp:53:21: note: no known conversion for argument 1 from 'int32_t {aka int}' to 'SF::Archive::Flag'
Regards
Volker