[linux-audio-dev] caps 0.1.0

Tim Goetze tim at quitte.de
Wed Feb 18 20:08:22 UTC 2004


[Tim Goetze]

>[Fernando Pablo Lopez-Lezcano]
>
>>Using 0.1.1 (tried on redhat 9 and fedora core 1):
>>
>>g++ -Wall -O6 -ffast-math -funroll-loops -march=`uname -m` -mcpu=`uname
>>-m`  -I/usr/local/include -DVERSION=\"0.1.1\" -I/usr/local/include -c
>>Cabinet.cc
>>Descriptor.h: In member function `void Descriptor<T>::autogen() [with T
>>=
>>   Cabinet]':
>>Cabinet.cc:168:   instantiated from here
>>Descriptor.h:36: type `Cabinet' is not a base type for type `
>>   Descriptor<Cabinet>'
>>make: *** [Cabinet.o] Error 1
>
>drat. what does
>
>$ g++ --version
>
>say, please?
>
>i'm using gcc 2.95.4, and afraid it's a compiler issue. unfortunately
>i don't seem to have a more recent version at my disposal.

i dug up a copy of g++-3.0 and it does fail with a different error,
but in the same line.

can you try the attached patch please?

tim
-------------- next part --------------
--- caps-0.1.1/Descriptor.h	Tue Feb 17 23:57:33 2004
+++ Descriptor.h	Wed Feb 18 21:03:48 2004
@@ -33,19 +33,11 @@
 
 		void autogen() 
 			{
-				PortCount = sizeof (T::ports) / sizeof (LADSPA_Data *);
+				PortCount = (sizeof (T::port_info) / sizeof (PortInfo));
 
 				char ** names = new char * [PortCount];
 				LADSPA_PortDescriptor * desc = new LADSPA_PortDescriptor [PortCount];
 				LADSPA_PortRangeHint * ranges = new LADSPA_PortRangeHint [PortCount];
-
-				int port_infos = (int) (sizeof (T::port_info) / sizeof (PortInfo));
-				if (PortCount != (ulong) port_infos)
-				{
-					fprintf (stderr, "%d ports, %d port_infos\n", (int) PortCount, port_infos);
-					assert (0);
-				}
-				assert (PortCount == (ulong) port_infos);
 
 				for (int i = 0; i < (int) PortCount; ++i)
 				{


More information about the Linux-audio-dev mailing list