[CM] cm3/sndlib with audio and midi file generation

Kjetil S. Matheussen k.s.matheussen at notam02.no
Fri Nov 28 04:25:13 PST 2008



On Fri, 28 Nov 2008, Bill Schottstaedt wrote:

>> SndLib.cpp:(.text+0x525): undefined reference to `xen_s7_c_to_xen_string'
>
> I think this would happen if you used gcc to make sndlib, then
> tried to load it into something built with g++.  That's the reason
> for the
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> #ifdef __cplusplus
> }
> #endif
>
> wrappers in the header files.
>
>
>
>> [UTF-8?]audio.c:8350: error: invalid conversion from ‘void*’ to ‘floa
> t*’
>
> The JACK section of audio.c needs a bunch of explicit type conversions to
> make C++ happy --I'll try to get around to it today.
>

Please don't... (it's ugly enough as it is.)

How about just doing

extern "C" {
   <jack-code>
}

instead ?



More information about the Cmdist mailing list