[linux-audio-user] ladspavst compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Those lines are in the ladspa.h file. The proper solution
to the problem is to cast all values with (const etc.) in the plugin.
I didn't bother doing that, I thought the warnings were
harmless when I wrote the plugin. Guess gcc isn't what
it once was...



Steve Harris:
> 
> Yeah, look on those lines an see what struct is being assigned to, then
> find where its declared and remove the word "const".
> 
> - Steve
> 
> On Wed, Feb 23, 2005 at 01:24:55 -0700, JP Mercury wrote:
> > Hi everyone-
> > 
> > I have vstserver working, but I'm trying to get ladspavst to compile. Here's
> > the compile errors:
> > 
> > gcc -c vst.c -Wall -Iinclude -I../vstserver/include -I/usr/local/include -g -O2
> > vst.c: In function `_init':
> > vst.c:505: error: assignment of read-only member `HintDescriptor'
> > vst.c:506: error: assignment of read-only member `LowerBound'
> > vst.c:507: error: assignment of read-only member `UpperBound'
> > vst.c:518: error: assignment of read-only member `HintDescriptor'
> > vst.c:520: error: assignment of read-only member `HintDescriptor'
> > vst.c:523: error: assignment of read-only member `HintDescriptor'
> > vst.c:527: error: assignment of read-only member `HintDescriptor'
> > vst.c:531: error: assignment of read-only member `HintDescriptor'
> > vst.c:533: error: assignment of read-only member `HintDescriptor'
> > vst.c:536: error: assignment of read-only member `HintDescriptor'
> > vst.c:544: error: assignment of read-only member `HintDescriptor'
> > vst.c:546: error: assignment of read-only member `LowerBound'
> > vst.c:547: error: assignment of read-only member `UpperBound'
> > vst.c:550: warning: assignment from incompatible pointer type
> > make: *** [vst.o] Error 1
> > 
> > Any ideas?
> > Thanks,
> > -M
> 

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux