Johannes Sixt wrote: > On Saturday 31 March 2007 12:13, Markku Linnoskivi wrote: > >> Now that I got the compiling work, my code won't compile 'cause the >> compiler complains about missing Mutex definition: >> >> audiojack.C: In constructor 'AudioJack::AudioJack(AudioDevice*)': >> audiojack.C:106: error: invalid use of undefined type 'struct Mutex' >> ../guicast/mutex.inc:4: error: forward declaration of 'struct Mutex' >> audiojack.C: In destructor 'virtual AudioJack::~AudioJack()': >> audiojack.C:117: error: invalid use of undefined type 'struct Mutex' >> ../guicast/mutex.inc:4: error: forward declaration of 'struct Mutex' >> audiojack.C:124: error: invalid use of undefined type 'struct Mutex' >> ../guicast/mutex.inc:4: error: forward declaration of 'struct Mutex' >> >> cinelerra/audiodevice.h includes "mutex.inc" and I include audiodevice.h >> so I should be able to use that, right? audioalsa.h/.C does the same. So >> whats the problem? >> > > At the top of audiojack.C add > > #include "mutex.h" > > Make sure all your #include lines are sorted alphabetically (that's just a > style issue, not a technical requirement). > >
Thanks. Now it compiles. Didn't try it out yet but will to morrow. I didn't notice that audioalsa.C does that include too, but offcause it has to. The inc has only the forward delclaration... _______________________________________________ Cinelerra mailing list [email protected] https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
