On Tue, Nov 29, 2016 at 04:32:21PM +0100, Thorsten Alteholz wrote: > building the alljoyn packages (alljoyn-core-1504, alljoyn-core-1509, > alljoyn-core-1604) with googletest and gcc-6 gives the following compile > error. I guess the "#include <math.h>" jusst needs to be replaced by > "#include <cmath>" for gcc-6 now.
FWIW: I found a smaller minimal test case: g++ -c -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -I/usr/src/gtest -I/usr/src/gtest/include /usr/src/gtest/src/gtest-all.cc Removing -D_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC makes the compile problem go away. I can't find any docs on that macro so I'm not sure whether its use is legitimate. On the other hand, I imagine using <cmath> should also be fine so I'll make that change. -Steve
signature.asc
Description: PGP signature