sorry, this solves a part of the problem. lots of errors still remains:
make -f Makefile.midiioLibrary.ALSA
make[2]: Entering directory /var/tmp/portage/pd_gripd-0.1.1/work/gripd/src' mkdir -p ./midiio/obj g++ -Wall -c -O3 -fpermissive -DLINUX -DALSA -I./midiio/include -o ./midiio/obj/FileIO.o ./midiio/src/FileIO.cpp g++ -Wall -c -O3 -fpermissive -DLINUX -DALSA -I./midiio/include -o ./midiio/obj/MidiFile.o ./midiio/src/MidiFile.cpp In file included from ./midiio/include/Array.h:59, from ./midiio/include/MidiFile.h:22, from ./midiio/src/MidiFile.cpp:17: ./midiio/include/Array.cpp: In member function
void
Array<type>::setAll(type)':
./midiio/include/Array.cpp:65: warning: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available
./midiio/include/Array.cpp:66: error: array' undeclared (first use this function) ./midiio/include/Array.cpp:66: error: (Each undeclared identifier is reported only once for each function it appears in.) ./midiio/include/Array.cpp: In member function
type Array<type>::sum()':
./midiio/include/Array.cpp:80: warning: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available
./midiio/include/Array.cpp:81: error: array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
type
Array<type>::sum(int, int)':
./midiio/include/Array.cpp:90: error: array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
void
Array<type>::zero(int, int)':
./midiio/include/Array.cpp:104: error: size' undeclared (first use this function) ./midiio/include/Array.cpp:110: error:
cerr' undeclared (first use this
function)
./midiio/include/Array.cpp:111: error: endl' undeclared (first use this function) ./midiio/include/Array.cpp:116: error:
array' undeclared (first use
this function)
./midiio/include/Array.cpp: In member function int Array<type>::operator==(const Array<type>&)': ./midiio/include/Array.cpp:129: warning: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available ./midiio/include/Array.cpp:134: warning: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available ./midiio/include/Array.cpp: In member function
Array<type>&
Array<type>::operator=(const Array<type>&)':
./midiio/include/Array.cpp:151: error: allocSize' undeclared (first use this function) ./midiio/include/Array.cpp:153: error:
array' undeclared (first use
this function)
./midiio/include/Array.cpp:156: error: size' undeclared (first use this function) ./midiio/include/Array.cpp:158: error:
allowGrowthQ' undeclared (first
use this function)
./midiio/include/Array.cpp:159: error: growthAmount' undeclared (first use this function) ./midiio/include/Array.cpp:160: error:
maxSize' undeclared (first use
this function)
./midiio/include/Array.cpp: In member function Array<type>& Array<type>::operator+=(const Array<type>&)': ./midiio/include/Array.cpp:179: error:
size' undeclared (first use this
function)
./midiio/include/Array.cpp:180: error: cerr' undeclared (first use this function) ./midiio/include/Array.cpp:181: error:
endl' undeclared (first use this
function)
./midiio/include/Array.cpp:186: error: array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator+(const Array<type>&) const':
./midiio/include/Array.cpp:201: error: size' undeclared (first use this function) ./midiio/include/Array.cpp:202: error:
cerr' undeclared (first use this
function)
./midiio/include/Array.cpp:203: error: endl' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator+(type) const':
./midiio/include/Array.cpp:216: error: size' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>&
Array<type>::operator-=(const Array<type>&)':
./midiio/include/Array.cpp:231: error: size' undeclared (first use this function) ./midiio/include/Array.cpp:232: error:
cerr' undeclared (first use this
function)
./midiio/include/Array.cpp:233: error: endl' undeclared (first use this function) ./midiio/include/Array.cpp:238: error:
array' undeclared (first use
this function)
./midiio/include/Array.cpp: In member function Array<type> Array<type>::operator-(const Array<type>&) const': ./midiio/include/Array.cpp:253: error:
size' undeclared (first use this
function)
./midiio/include/Array.cpp:254: error: cerr' undeclared (first use this function) ./midiio/include/Array.cpp:255: error:
endl' undeclared (first use this
function)
./midiio/include/Array.cpp: In member function Array<type> Array<type>::operator-() const': ./midiio/include/Array.cpp:268: error:
size' undeclared (first use this
function)
./midiio/include/Array.cpp: In member function Array<type> Array<type>::operator-(type) const': ./midiio/include/Array.cpp:277: error:
size' undeclared (first use this
function)
./midiio/include/Array.cpp: In member function Array<type>& Array<type>::operator*=(const Array<type>&)': ./midiio/include/Array.cpp:292: error:
size' undeclared (first use this
function)
./midiio/include/Array.cpp:293: error: cerr' undeclared (first use this function) ./midiio/include/Array.cpp:294: error:
endl' undeclared (first use this
function)
./midiio/include/Array.cpp:299: error: array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator*(const Array<type>&) const':
./midiio/include/Array.cpp:314: error: size' undeclared (first use this function) ./midiio/include/Array.cpp:315: error:
cerr' undeclared (first use this
function)
./midiio/include/Array.cpp:316: error: endl' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator*(type) const':
./midiio/include/Array.cpp:329: error: size' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>&
Array<type>::operator/=(const Array<type>&)':
./midiio/include/Array.cpp:342: error: size' undeclared (first use this function) ./midiio/include/Array.cpp:343: error:
cerr' undeclared (first use this
function)
./midiio/include/Array.cpp:344: error: endl' undeclared (first use this function) ./midiio/include/Array.cpp:349: error:
array' undeclared (first use
this function)
./midiio/include/Array.cpp: In member function Array<type> Array<type>::operator/(const Array<type>&) const': ./midiio/include/Array.cpp:362: error:
size' undeclared (first use this
function)
./midiio/include/Array.cpp:363: error: cerr' undeclared (first use this function) ./midiio/include/Array.cpp:364: error:
endl' undeclared (first use this
function)
make[2]: *** [MidiFile.o] Error 1
make[2]: Leaving directory /var/tmp/portage/pd_gripd-0.1.1/work/gripd/src' make[1]: *** [midimodule.so] Error 2 make[1]: Leaving directory
/var/tmp/portage/pd_gripd-0.1.1/work/gripd/src'
make: *** [gripd_linux] Error 2
Looks like you should try compiling with -fpermissive:
"./midiio/include/Array.cpp:65: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)"
.hc
On Dec 4, 2005, at 10:00 AM, federico wrote:
i am trying to build gripd from source (to make an ebuild for it). I installed python-2.2 as makefile required it (obviously I am running Linux)
make -f Makefile.Linux all make[1]: Entering directory
/var/tmp/portage/pd_gripd-0.1.1/work/gripd/src' cc -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../src -o gripd.o -c gripd.c ld -export_dynamic -lm -shared -o gripd.pd_linux gripd.o -lc -lm ld: warning: creating a DT_TEXTREL in object. strip --strip-unneeded gripd.pd_linux cp gripd.pd_linux .. cc -c joystick.c cc -I/usr/include/python2.2 -c -DHAVE_CONFIG_H joystick_wrap.c ld -shared joystick.o joystick_wrap.o -o joystickmodule.so ld: warning: creating a DT_TEXTREL in object. cp joystickmodule.so .. echo "joystick = "TRUE > ../gripd.opt make -f Makefile.midiioLibrary.ALSA make[2]: Entering directory
/var/tmp/portage/pd_gripd-0.1.1/work/gripd/src' mkdir -p ./midiio/obj g++ -Wall -c -O3 -DLINUX -DALSA -I./midiio/include -o
./midiio/obj/FileIO.o ./midiio/src/FileIO.cpp g++ -Wall -c -O3 -DLINUX -DALSA -I./midiio/include -o
./midiio/obj/MidiFile.o ./midiio/src/MidiFile.cpp In file included from ./midiio/include/Array.h:59, from ./midiio/include/MidiFile.h:22, from ./midiio/src/MidiFile.cpp:17: ./midiio/include/Array.cpp: In member functionvoid Array<type>::setAll(type)': ./midiio/include/Array.cpp:65: error: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available ./midiio/include/Array.cpp:65: error: (if you use
-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) ./midiio/include/Array.cpp:66: error:array' undeclared (first use this function) ./midiio/include/Array.cpp:66: error: (Each undeclared identifier is reported only once for each function it appears in.) ./midiio/include/Array.cpp: In member function
type
Array<type>::sum()': ./midiio/include/Array.cpp:80: error: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available ./midiio/include/Array.cpp:81: error:array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
type
Array<type>::sum(int, int)': ./midiio/include/Array.cpp:90: error:array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
void
Array<type>::zero(int, int)': ./midiio/include/Array.cpp:104: error:size' undeclared (first use this function) ./midiio/include/Array.cpp:110: error:
cerr' undeclared (first use
this function) ./midiio/include/Array.cpp:111: error:endl' undeclared (first use this function) ./midiio/include/Array.cpp:116: error:
array' undeclared (first use
this function) ./midiio/include/Array.cpp: In member functionint Array<type>::operator==(const Array<type>&)': ./midiio/include/Array.cpp:129: error: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available ./midiio/include/Array.cpp:134: error: there are no arguments to
getSize' that depend on a template parameter, so a declaration of
getSize' must be available ./midiio/include/Array.cpp: In member function
Array<type>&
Array<type>::operator=(const Array<type>&)': ./midiio/include/Array.cpp:151: error:allocSize' undeclared (first use this function) ./midiio/include/Array.cpp:153: error:
array' undeclared (first use
this function) ./midiio/include/Array.cpp:156: error:size' undeclared (first use this function) ./midiio/include/Array.cpp:158: error:
allowGrowthQ' undeclared
(first use this function) ./midiio/include/Array.cpp:159: error:growthAmount' undeclared (first use this function) ./midiio/include/Array.cpp:160: error:
maxSize' undeclared (first use this function) ./midiio/include/Array.cpp: In member functionArray<type>& Array<type>::operator+=(const Array<type>&)': ./midiio/include/Array.cpp:179: error:
size' undeclared (first use
this function) ./midiio/include/Array.cpp:180: error:cerr' undeclared (first use this function) ./midiio/include/Array.cpp:181: error:
endl' undeclared (first use
this function) ./midiio/include/Array.cpp:186: error:array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator+(const Array<type>&) const': ./midiio/include/Array.cpp:201: error:size' undeclared (first use this function) ./midiio/include/Array.cpp:202: error:
cerr' undeclared (first use
this function) ./midiio/include/Array.cpp:203: error:endl' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator+(type) const': ./midiio/include/Array.cpp:216: error:size' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>&
Array<type>::operator-=(const Array<type>&)': ./midiio/include/Array.cpp:231: error:size' undeclared (first use this function) ./midiio/include/Array.cpp:232: error:
cerr' undeclared (first use
this function) ./midiio/include/Array.cpp:233: error:endl' undeclared (first use this function) ./midiio/include/Array.cpp:238: error:
array' undeclared (first use
this function) ./midiio/include/Array.cpp: In member functionArray<type> Array<type>::operator-(const Array<type>&) const': ./midiio/include/Array.cpp:253: error:
size' undeclared (first use
this function) ./midiio/include/Array.cpp:254: error:cerr' undeclared (first use this function) ./midiio/include/Array.cpp:255: error:
endl' undeclared (first use
this function) ./midiio/include/Array.cpp: In member functionArray<type> Array<type>::operator-() const': ./midiio/include/Array.cpp:268: error:
size' undeclared (first use
this function) ./midiio/include/Array.cpp: In member functionArray<type> Array<type>::operator-(type) const': ./midiio/include/Array.cpp:277: error:
size' undeclared (first use
this function) ./midiio/include/Array.cpp: In member functionArray<type>& Array<type>::operator*=(const Array<type>&)': ./midiio/include/Array.cpp:292: error:
size' undeclared (first use
this function) ./midiio/include/Array.cpp:293: error:cerr' undeclared (first use this function) ./midiio/include/Array.cpp:294: error:
endl' undeclared (first use
this function) ./midiio/include/Array.cpp:299: error:array' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator*(const Array<type>&) const': ./midiio/include/Array.cpp:314: error:size' undeclared (first use this function) ./midiio/include/Array.cpp:315: error:
cerr' undeclared (first use
this function) ./midiio/include/Array.cpp:316: error:endl' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>
Array<type>::operator*(type) const': ./midiio/include/Array.cpp:329: error:size' undeclared (first use this function) ./midiio/include/Array.cpp: In member function
Array<type>&
Array<type>::operator/=(const Array<type>&)': ./midiio/include/Array.cpp:342: error:size' undeclared (first use this function) ./midiio/include/Array.cpp:343: error:
cerr' undeclared (first use
this function) ./midiio/include/Array.cpp:344: error:endl' undeclared (first use this function) ./midiio/include/Array.cpp:349: error:
array' undeclared (first use
this function) ./midiio/include/Array.cpp: In member functionArray<type> Array<type>::operator/(const Array<type>&) const': ./midiio/include/Array.cpp:362: error:
size' undeclared (first use
this function) ./midiio/include/Array.cpp:363: error:cerr' undeclared (first use this function) ./midiio/include/Array.cpp:364: error:
endl' undeclared (first use
this function) make[2]: *** [MidiFile.o] Error 1 make[2]: Leaving directory
/var/tmp/portage/pd_gripd-0.1.1/work/gripd/src' make[1]: *** [midimodule.so] Error 2 make[1]: Leaving directory
/var/tmp/portage/pd_gripd-0.1.1/work/gripd/src' make: *** [gripd_linux] Error 2could someone help to solve this error?
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list