help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some trouble with gcc-3.0


From: BERTRAND Joël
Subject: Some trouble with gcc-3.0
Date: Wed, 20 Jun 2001 10:30:13 +0100

    Good morning,

    I have some sources that run with octave (oct-files). I have built
gcc-3.0
(because gcc2.95 is not very good on my alpha station), and gcc-3.0 can
not compile
my oct-files.

    My makefile is :

SRCCC=\
    conjoint.cc

OBJCC=$(SRCCC:.cc=.o)

ifeq ($(shell uname -m), alpha)
    FLAGS=-mieee -v
    INC=-I/usr/include/octave -I/usr/local/include/g++-v3
else
    FLAGS=-mieee-fp
    INC=-I/usr/include/octave -I/usr/local/include/g++-v3
endif

%.o:%.cc
    g++ $(FLAGS) -fno-implicit-templates -g -O2 -fPIC $(INC) -c $<

%.o: %.c
    gcc $(FLAGS) -fno-implicit-templates -g -O2 -fPIC $(INC) -c $< -Wall

conjoint: $(OBJCC)
    g++ $(FLAGS) -fno-implicit-templates -g -O2 -fPIC -shared $(OBJCC)
-o address@hidden

and I think that this makefile is good (it works fine with gcc-2.95).

    When I try to build « conjoit.oct », I receive :

In file included from /usr/local/include/octave/mx-defs.h:72,
                 from /usr/local/include/octave/chMatrix.h:37,
                 from /usr/local/include/octave/mx-base.h:28,
                 from /usr/local/include/octave/ov.h:38,
                 from /usr/local/include/octave/variables.h:38,
                 from /usr/local/include/octave/defun-int.h:26,
                 from /usr/local/include/octave/defun-dld.h:30,
                 from conjoint.cc:7:
/usr/local/include/octave/oct-cmplx.h:28: syntax error before `;' token
In file included from /usr/local/include/octave/chMatrix.h:37,
                 from /usr/local/include/octave/mx-base.h:28,
                 from /usr/local/include/octave/ov.h:38,
                 from /usr/local/include/octave/variables.h:38,
                 from /usr/local/include/octave/defun-int.h:26,
                 from /usr/local/include/octave/defun-dld.h:30,
                 from conjoint.cc:7:
/usr/local/include/octave/mx-defs.h:81: parse error before `&' token
/usr/local/include/octave/mx-defs.h:82: `c_c_Mapper' was not declared in
this
   scope
/usr/local/include/octave/mx-defs.h:82: parse error before `&' token
/usr/local/include/octave/mx-defs.h:82: typedef declaration includes an
   initializer
/usr/local/include/octave/mx-defs.h:82: confused by earlier errors,
bailing out
make: *** [conjoint.o] Error 1

    I have try some options of gcc without any sucess. Where is the
problem ?

    Regards,

    JKB



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]