[odb-users] Problem using <complex>

Andrew Cunningham odb at a-cunningham.com
Thu May 4 17:07:18 EDT 2023


Hi,
I am using an older version of ODB (2.5.0-b.3) , for an previous
version of our software, and I need to use std::complex<double> in a
class for an patch upgrade

Whenever I include <complex> in a header file to  be processed by ODB
I get many of the following types of errors. I will be making the
complex data member persistent.

I can reproduce with a simple case based on one of the ODB examples.

1>d:\odb2.5.0\odb-2.5.0-b.3-i686-windows\mingw\include\c++\4.9.3\cmath(102,11):
error G5885A27A: '::acos' has not been declared
1>   using ::acos;
1>           ^
1>d:\odb2.5.0\odb-2.5.0-b.3-i686-windows\mingw\include\c++\4.9.3\cmath(121,11):
error G0EE8A278: '::asin' has not been declared
1>   using ::asin;
1>           ^
1>d:\odb2.5.0\odb-2.5.0-b.3-i686-windows\mingw\include\c++\4.9.3\cmath(140,11):
error G8383A270: '::atan' has not been declared


I have been unable to come up with a workaround so far.

Andrew



More information about the odb-users mailing list