[Gate-users] compiling the jobsplitter:no match for ‘operator<<’

G Tom gregthom992 at gmail.com
Thu Mar 2 22:22:54 CET 2017


I have compiled everything as per Gate V7.2 instructions on Ubuntu 16.04
 and now I would like to compile the cluster_tools/jobsplitter but I am
getting errors at:

./src/GateToPlatform.cc:135:50: error: no match for ‘operator<<’ (operand
types are ‘std::basic_ostream<char>’ and ‘std::ofstream {aka
std::basic_ofstream<char>}’)

Where I see the offending line is: ./src/GateToPlatform.cc:135
ofstream submitFile(submitFilename.c_str());
        if (!submitFile) {
                cout<< "Error : could not create submit file!
"<<submitFile<< endl;

Simillarly, I get this error following the first error

/usr/include/c++/5/ostream:628:5: note:   conversion of argument 1 would be
ill-formed:
./src/GateToPlatform.cc:203:7: error: cannot bind
‘std::basic_ostream<char>’ lvalue to ‘std::basic_ostream<char>&&’
   cout<< "Error : could not create submit file! "<<submitFile<< endl;


Any pointers to how to solve this ?

Thanks

GT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20170302/c588e54c/attachment.html>


More information about the Gate-users mailing list