Thanks Jeroen, g++ is my usual haunt so it's just a habit I guess !

Tried gcc instead and now it looks like it can't find the libraries (?)

eg:-

freedv_api.c: In function ‘freedv_comprx_fdmdv_700’:
freedv_api.c:1202:100: warning: passing argument 5 of 
‘cohpsk_put_test_bits’ from incompatible pointer type 
[-Wincompatible-pointer-types]
  its(f->cohpsk, &f->test_frame_sync_state, error_pattern, &bit_errors, 
rx_bits);
                                                                        ^
In file included from 
/home/g3nr/free-dv/build_linux/codec2-dev/src/freedv_api_internal.h:44:0,
                  from freedv_api.c:46:
/home/g3nr/free-dv/build_linux/codec2-dev/src/codec2_cohpsk.h:55:6: 
note: expected ‘char *’ but argument is of type ‘float *’
  void cohpsk_put_test_bits(struct COHPSK *coh, int *state, short 
error_pattern[]
       ^
/tmp/cc5hYYlQ.o: In function `freedv_open':
freedv_api.c:(.text+0x11a): undefined reference to `fdmdv_create'
freedv_api.c:(.text+0x13e): undefined reference to `golay23_init'
freedv_api.c:(.text+0x193): undefined reference to `fdmdv_bits_per_frame'
freedv_api.c:(.text+0x1dc): undefined reference to `fdmdv_bits_per_frame'
freedv_api.c:(.text+0x25e): undefined reference to 
`fdmdv_error_pattern_size'
freedv_api.c:(.text+0x2af): undefined reference to `cohpsk_create'
freedv_api.c:(.text+0x366): undefined reference to 
`cohpsk_error_pattern_size'
freedv_api.c:(.text+0x3a7): undefined reference to `fvhff_create_deframer'
freedv_api.c:(.text+0x3ec): undefined reference to `fsk_create_hbr'
freedv_api.c:(.text+0x43c): undefined reference to `fvhff_destroy_deframer'
freedv_api.c:(.text+0x4a8): undefined reference to `fsk_nin'

  etc........etc.......long list..

Tried gcc  -L to the  free-dv/build_linux/external/dist/lib/ directory 
but still doesn't want to play.

Not sure where I should be looking :-(

73s Andrew G3NR





On 12/08/16 09:49, Jeroen Vreeken wrote:
> Hi Andrew,
>
> On 08/12/2016 10:44 AM, Andrew Birt wrote:
>> My compile command line:-
>>
>> :~/Desktop/weds$ g++
>> -I/home/g3nr/free-dv/src/-I/home/g3nr/free-dv/build_linux/codec2-dev/src/
>> freedv_api.c freedv_tx.c -o foo
>>
> You seem to be compiling C code with a C++ compiler.... hence the
> warnings about void* being casted.
> Try using 'gcc' instead of 'g++'
>
> Regards,
> Jeroen
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. http://sdm.link/zohodev2dev
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to