From: Per P. <per...@ma...> - 2004-06-15 22:07:59
|
>> >> I've committed this to the cvs, but unless you have access to the >> developers >> site you won't see this change for a few hours. Could you check and >> see >> that this fixes all the build problems you are/were having... > > That problem is gone! Now I see this (seems unrelated...) > ld: Undefined symbols: > int cat_ra<FixedPoint>(Array<FixedPoint>&, Array<FixedPoint> const&, > int, int, int) > int cat_ra<FixedPointComplex>(Array<FixedPointComplex>&, > Array<FixedPointComplex> const&, int, int, int) > make: *** [fixed.oct] Error 1 David, I think the following patch fixes the above problem. As I understand things, the templates need to be instantiated for the corresponding symbols to be requested by the linker on OS X. Beware though that this is Cargo Cult programming, my C++ knowledge is limited. Sanity check is necessary!!! /Per Index: main/fixed/Array-f.cc =================================================================== RCS file: /cvsroot/octave/octave-forge/main/fixed/Array-f.cc,v retrieving revision 1.2 diff -u -d -b -w -u -w -r1.2 Array-f.cc --- main/fixed/Array-f.cc 26 May 2004 14:18:51 -0000 1.2 +++ main/fixed/Array-f.cc 15 Jun 2004 21:57:06 -0000 @@ -43,6 +43,10 @@ template class Array<FixedPointComplex>; template class MArray<FixedPointComplex>; +template int cat_ra (Array<FixedPoint>& ra, const Array<FixedPoint>& ra_arg, \ + int dim, int idx, int move); +template int cat_ra (Array<FixedPointComplex>& ra, const Array<FixedPointComplex>& ra_arg, \ + int dim, int idx, int move); template int assign (Array<FixedPoint>&, const Array<FixedPoint>&); template int assign (Array<FixedPointComplex>&, const Array<FixedPoint>&); template int assign (Array<FixedPointComplex>&, |