Milestone: 1.0 Status: closed Owner: Boris Labels: bug (4)
Updated: 2013-02-24 Created: 2013-02-16 Creator: Milan Vukov Private: No
Math functions erf and erfc are not defined in MS Visual Studio. Thus, ACADO code cannot be compiled. In short, those two functions must be provided in case ACADO is compiled with MS Visual Studio. Also, MSVC++ reports that constant INFINITY used in interval.ipp is not defined. This can be solved with
ifndef INFINITY
define INFINITY INFTY
endif
A separate issue is that because those two functions are defined in the new standard ACADO code might be not possible to compile with older compilers.
I can help to test with CMake whether thos two functions are available for particular OS/compiler conf, but I would need source for those two guys.
NOTE: There are no issues with Cygwin compilation.
Discussion
Milan Vukov
2013-02-16
summary: erf and erfc are are part of c++11 std. Thus, ACADO cannot be compiled --> erf and erfc are are part of c++11 std. Thus, ACADO cannot be compiled with MSVC++.
Description has changed:
Diff:
--- old
+++ new
@@ -0,0 +1,13 @@
+Math functions erf and erfc are not defined in MS Visual Studio. Thus, ACADO code cannot be compiled. In short, those two functions must be provided in case ACADO is compiled with MS Visual Studio. Also, MSVC++ reports that constant INFINITY used in interval.ipp is not defined. This can be solved with
+
+* * *
- #ifndef INFINITY
- #define INFINITY INFTY
- #endif
+* * *
+A separate issue is that because those two functions are defined in the new standard ACADO code might be not possible to compile with older compilers.
+
+I can help to test with CMake whether thos two functions are available for particular OS/compiler conf, but I would need source for those two guys.
+
+NOTE: There are no issues with Cygwin compilation.
assigned_to: Boris
Reply
Link
Edit
Delete
Attach
Milan Vukov
2013-02-24
All bugs related to this ticket are fixed. erf and erfc are removed from the Interval class. Some constants are defined properly now, like the INFINITY constant.
Reply
Link
Edit
Delete
Attach
Milan Vukov
2013-02-24
status: accepted --> closed