On Fri, Aug 28, 2009 at 10:52 AM, David Bateman<dbate...@dbateman.org> wrote: > Dmitri A. Sergatskov wrote: >> I cannot compile fixed-0.7.10.tar.gz package on octave-3.2.2 >> (Fedora 11 / x86_64 / gcc 4.4.1): >> >> octave:1> pkg install fixed-0.7.10.tar.gz >> int/fixed.cc: In function ‘std::ostream& operator<<(std::ostream&, >> const FixedPoint&)’: >> int/fixed.cc:1181: warning: suggest parentheses around ‘+’ inside ‘>>’ >> In file included from Array-f.cc:33: >> /usr/include/octave-3.2.2/octave/Array.cc: In static member function >> ‘static void Array<T>::instantiation_guard() [with T = FixedPoint]’: >> Array-f.cc:53: instantiated from here >> /usr/include/octave-3.2.2/octave/Array.cc:2698: error: ‘__xXxXx__’ is >> not a member of ‘FixedPoint’ >> /usr/include/octave-3.2.2/octave/Array.cc: In static member function >> ‘static void Array<T>::instantiation_guard() [with T = >> FixedPointComplex]’: >> Array-f.cc:55: instantiated from here >> /usr/include/octave-3.2.2/octave/Array.cc:2698: error: ‘__xXxXx__’ is >> not a member of ‘FixedPointComplex’ >> make: *** [Array-f.o] Error 1 >> >> Sincerely, >> >> Dmitri. >> -- > When I build the fixed package from within the octave-forge SVN and with > the tip of the 3.2.x tree under a debian x86 system, with > > cd main/fixed/src > ./configure > make > > I don't see any build issues. So I then tried with the 3.2.3-RC1 and > fixed-0.7.10.tar.gz with > > pkg install fixed-0.7.10.tar.gz > > within Octave and also didn't see this problem. Not being able to > reproduce this problem I don't see how I can fix it. Note that I had no > other packages installed when installing the fixed package. >
That's really weird, because looking at the code, it should fail AFAIK. Array<T> should be always instantiated using the INSTANTIATE_ARRAY macro (which overrides Array<T>::instantiation_guard). This was done because implicit instantiations of Array<T> should basically never happen, so that we want to guard against them. Replacing the template statements by INSTANTIATE_ARRAY should fix the problem. I'll patch it later if you won't do it sooner. regards -- RNDr. Jaroslav Hajek computing expert & GNU Octave developer Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev