|
From: | Jean-Philippe Lebel |
Subject: | Re: [certi-dev] C++ error in VS when building certi3.5.1 |
Date: | Fri, 13 Nov 2015 11:25:08 -0500 |
the 7 errors areI tried to add the code you gave me to add it on the top of M_classes.cc but a new error say that we can not define it twice.for : out << dimensions[i].show(out);error :I tried what you have suggested it really works to reduce the number of errors from 50 to 7. I still have a problem with NM_Classes.cc
Hi Jean-Philippe,
9>D:\isae\certi\CERTI-3.5.1git-Source\libCERTI\NM_Classes.cc(101): error C2678: binary '<<' : no operator found which takes a left-hand operand of type 'std::ostream' (or there is no acceptable conversion)2015-11-12 20:33 GMT+01:00 Jean-Philippe Lebel <address@hidden>:** Warning ** Not the best fix!To fix the stream error, define the overloaded function, in certi.hh (within the CERTI__HH_INCLUDED ifdef)namespace certi { std::ostream& operator<< (std::ostream& os, std::ostream& is);}Place the actual code in a compiled file (in placed mine in at the top of M_Classes.cc but it should not matter)
namespace certi { std::ostream& operator<< (std::ostream& os, std::ostream& is) { return (os << is.rdbuf()); } }I can't understand the root cause of that error... but it seems related to an addition to C++11. The fix, while to pretty, does the job.For the std::min error (in HLAbuffer.cc) just add #include <algorithm> at the top. Same thing for ObjectClass.cc, HLAvariableArray.hh, BillardDDM.cc,In SocketSHMWin32.hh comment the throw line and do the same in SocketSHMWin32.cc (around line 100)Now it will compile. I haven't tested the resulting binary...Good luck.On Thu, Nov 12, 2015 at 11:52 AM, Bourbouh Hamza <address@hidden> wrote:--HamzaWaiting for your ideas what goes wrong?the line of code that throws the error is :For example :Hi everyone,When I'm trying to build certi on Windows 10 with Visual Studio 13, it throws a lot of errors
9>D:\isae\certi\CERTI-3.5.1git-Source\libCERTI\M_Classes.cc(1047): error C2678: binary '<<' : no operator found which takes a left-hand operand of type
'std::basic_ostream<char,std::char_traits<char>>' (or there is no acceptable conversion)
out << "(opt) eventRetraction =" << eventRetraction.show(out) << std::endl;
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel
--
--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel
--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel
certi.hh
Description: Text document
M_Classes.cc
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |