[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Patch for fast midi file rendering
From: |
Pedro Lopez-Cabanillas |
Subject: |
Re: [fluid-dev] Patch for fast midi file rendering |
Date: |
Sat, 21 Mar 2009 19:00:22 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
David Henningsson wrote:
> Strange, it works here (gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2).
> Nevertheless, here's a patch that should build on both versions.
Yes, this time your patch compiles without error messages.
The explanation for the compiler error is: fluidsynth.c is a client, it has
only access to the public functions and types published by "fluidsynth.h". It
can't access members, like synth->settings, because fluid_synth_t has no
public members. This is a deliberate encapsulation.
Please, fix your development environment. If you are using an experimental GCC
package, try to test your code also with a stable compiler.
> // David
>
> Pedro Lopez-Cabanillas skrev:
> > David Henningsson wrote:
> >> Enough said - now go enjoy the new patch!
> >
> > Sorry, but:
> >
> > fluidsynth.c: In function ‘fast_render_loop’:
> > fluidsynth.c:185: error: dereferencing pointer to incomplete type
> > fluidsynth.c:186: error: dereferencing pointer to incomplete type
> > make[2]: *** [fluidsynth-fluidsynth.o] Error 1
> > [...]
> > $ gcc --version
> > gcc (GCC) 4.2.1 (SUSE Linux)
The first test was in openSuse 10.3, but I've tried two more compilers.
openSuse 11.1:
gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
Ubuntu 8.04:
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Both are reporting the same error: dereferencing pointer to incomplete type.
Regards,
Pedro