Am 10.06.15 um 22:21 schrieb fl:
> I know there is a fast C library (NE10) for ARM processor. If a new project
> is required to write in C++, how to use the old C function? I am new to gcc
> etc. under Linux. What should be taken care of in advance.
>
Put the declarations into extern "C" { } blocks.
>
> NE10 has such functions defined:
>
>
> ne10_result_t ne10_mulc_float_c (ne10_float32_t *dst, ne10_float32_t *src,
> const ne10_float32_t cst, ne10_uint32_t count)
>
> void ne10_fir_float_c (const ne10_fir_instance_f32_t *S, ne10_float32_t
> *pSrc, ne10_float32_t *pDst, ne10_uint32_t blockSize)
>
some header files even do this for you like
#ifdef _cplusplus
extern "C" {
#endif
... here comes the C functions
#ifdef _cplusplus
}
#endif
if not, you can include the header file in an extern C block.
Christian