[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: troubles with mkoctfiles
From: |
Trond Eivind Glomsrød |
Subject: |
Re: troubles with mkoctfiles |
Date: |
27 Aug 2001 20:39:54 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104 |
Istvan Albert <address@hidden> writes:
> Hello,
>
> I have recently started using Octave 2.1.33 (RedHat linux) it works great
> but I am having troubles with the mkoctfile script.
>
> This is the result of compiling hello.cc
>
> mkoctfile -v hello.cc
> c++ -c -fPIC -I/usr/include/octave-2.1.33 -I/usr/include/octave-2.1.33/octave
> -I/usr/include -mieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates
> -O2 -march=i386 -mcpu=i686 hello.cc -o hello.o
> hello.cc: In function `octave_value_list Fhello (const
> octave_value_list &, int)':
> hello.cc:94: no matching function for call to `octave_value::print ()'
> /usr/include/octave-2.1.33/octave/ov.h:479: candidates are: void
> octave_value::print (ostream &, bool = false) const
>
> now if I comment out the tmp.print line in hello.cc the script compiles and
> runs
> fine in Octave (doesn't output the arguments anymore of course). What could
> be the
> problem here? ( Although I have programmed in C I'm not used to C++ syntax so
> it
> is difficult for me to guess why this methods is not seen)
>
> When I try to compile the other script (oregonator.cc), I get
>
> oregonator.cc: In function `octave_value_list Foregonator (const
> octave_value_list &, int)':
> oregonator.cc:15: conversion from `Array<double>' to non-scalar type
> `ColumnVector' requested
gcc 2.96RH (and gcc 3) both have much stronger demands on typing and
other aspects of C++ code, which is why you're seeing these messages.
--
Trond Eivind Glomsrød
Red Hat, Inc.
-------------------------------------------------------------
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
-------------------------------------------------------------