Hi all,
On C++ compiling "fdvcore" part of "SmallDV" on the Banana Pi M2 Berry
here running Ubuntu I get these errors:
from /usr/local/include/codec2/codec2_ofdm.h:37,
from /usr/local/include/codec2/freedv_api.h:42,
from scdv.h:22,
from fdvcore.cc:25:
/usr/include/c++/5/cmath: In function ‘constexpr float std::abs(float)’:
/usr/include/c++/5/cmath:87:16: error: conflicting declaration of C function
‘constexpr float std::abs(float)’
-----
Somehow <complex.h> gets included twice.
In codec2_ofdm.h just above line 35 there is a test for, are we in C++.
Should we, in that text, do:
#else
#include <complex.h>
/usr/local/include/codec2/codec2_ofdm.h line 37
#include <complex.h>
Done, I get a clean compile.
Alan VK2ZIW
Evil flourishes when good men do nothing.
Consider the Christmas child.
---------------------------------------------------------------------------
Alan Beard Unix Support Technician from 1984 to today
70 Wedmore Rd. Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS
Emu Heights N.S.W. 2750 Routers, terminal servers, printers, terminals etc..
+61 2 47353013 (h) Support Programming, shell scripting, "C", assembler
0414 353013 (mobile) After uni, electronics tech
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2