From: David B. <Dav...@mo...> - 2004-09-08 20:53:24
|
According to Per Persson <per...@ma...> (on 09/08/04): > mkoctfile -DHAVE_OCTAVE_21 -v -c Array-f.cc This is wrong as I have the define DEFINES = -DOCTAVE_FORGE $(HAVE_DO_FORTRAN_INDEXING) \ $(HAVE_PROPAGATE_EMPTY_MATRICES) \ $(HAVE_OK_TO_LOSE_IMAGINARY_PART) \ $(HAVE_ND_ARRAYS) $(TYPEID_HAS_CLASS) \ $(CLASS_HAS_LOAD_SAVE) $(HAVE_6ARG_MX_ND_RED) \ $(HAVE_OCTAVE_CONCAT) $(HAVE_SWAP_BYTES) in the Makefile and then I have the rule %.o:%.cc %.d @echo "Compiling $@"; \ $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $< So it seems that this rule is not taking effect on OS X, and the base rules from Makeconf %.o: %.c ; $(MKOCTFILE) -c $< %.o: %.f ; $(MKOCTFILE) -c $< %.o: %.cc ; $(MKOCTFILE) -c $< %.oct: %.cc ; $(MKOCTFILE) $< are. Probably I have to delete the default rules before defining my on in the Makefile under OS X... I just changed "%.o:%.cc" to "%.o:%.cc %d". Could you change it back and see what happens... D. > g++ -c -I/usr/local/include/octave-2.1.58 > -I/usr/local/include/octave-2.1.58/octave -I/usr/local/include -g -O2 > -DHAVE_OCTAVE_21 Array-f.cc -o Array-f.o > Array-f.cc:63:28: octave/Array2.cc: No such file or directory > [snip] > Array-f.cc:84: error: template-id `assign<>' for `int > assign(Array2<FixedPointComplex>&, const Array2<FixedPointComplex>&, > const > FixedPointComplex&)' does not match any template declaration > make: *** [Array-f.o] Error 1 > > This seems to be related to a missing HAVE_ND_ARRAYS definition (and > thus shouldn't be unique to OS X?) > > Problem 2) > > mkoctfile -DHAVE_OCTAVE_21 -v -c ov-fixed-mat.cc > g++ -c -I/usr/local/include/octave-2.1.58 > -I/usr/local/include/octave-2.1.58/octave -I/usr/local/include -g -O2 > -DHAVE_OCTAVE_21 ov-fixed-mat.cc -o ov-fixed-mat.o > ov-fixed-mat.cc:82:73: macro "DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA" > requires 3 arguments, but only 2 given > ov-fixed-mat.cc:82: warning: ISO C++ forbids declaration of ` > DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA' with no type > make: *** [ov-fixed-mat.o] Error 1 > > Could this be a GCC 3.1 vs 3.3 issue? > > I'll see if I can find the cause of this. > > /Per > -------- > Per Persson, Ph.D. Applied Signal Processing > Resume, contact info and more: > http://homepage.mac.com/persquare > > -- David Bateman Dav...@mo... Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary |