Hi Søren,

I am on

2.6.38-2-amd64 x86_64 unknown GNU/Linux
gcc (Debian 4.4.5-8) 4.4.5

octave is under /usr/local. When I compile

g++ -c -I/usr/local/include/octave-3.4.0/octave/.. -I/usr/local/include -g -O2 
-Wall __spatial_filtering__.cc -o __spatial_filtering__.o

I get the error below. Doing

g++ -c -I/usr/local/include -g -O2 -Wall __spatial_filtering__.cc -o 
__spatial_filtering__.o

compiles fine.

M.


On 06/06/11 13:27, Søren Hauberg wrote:
> tor, 02 06 2011 kl. 13:48 -0700, skrev Muhali Muhali:
>> I am unable to install the image-1.0.14 package using octave 3.4. The error 
>> I get is
>
> I am unable to reproduce these errors. Can you provide a bit of info
> about your setup? Operating system and compiler version would help?
>
> Thanks
> Søren
>
>
>>
>> $>  mkoctfile -Wall __spatial_filtering__.cc
>>
>> __spatial_filtering__.cc: In function ‘ET_OUT entropy_filt(MT&, 
>> octave_idx_type, int) [with ET = octave_int<signed char>, MT = 
>> intNDArray<octave_int<signed char>  >, ET_OUT = double]’:
>>
>> __spatial_filtering__.cc:558:   instantiated from here
>>
>> __spatial_filtering__.cc:190: error: conversion from ‘octave_int<signed 
>> char>’ to ‘long int’ is ambiguous
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:783: note: 
>> candidates are: octave_int<T>::operator float() const [with T = signed char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:781: note:   
>>               octave_int<T>::operator double() const [with T = signed char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:777: note:   
>>               octave_int<T>::operator T() const [with T = signed char]
>>
>> __spatial_filtering__.cc:192: error: conversion from ‘octave_int<signed 
>> char>’ to ‘long int’ is ambiguous
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:783: note: 
>> candidates are: octave_int<T>::operator float() const [with T = signed char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:781: note:   
>>               octave_int<T>::operator double() const [with T = signed char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:777: note:   
>>               octave_int<T>::operator T() const [with T = signed char]
>>
>> __spatial_filtering__.cc: In function ‘ET_OUT entropy_filt(MT&, 
>> octave_idx_type, int) [with ET = octave_int<unsigned char>, MT = 
>> intNDArray<octave_int<unsigned char>  >, ET_OUT = double]’:
>>
>> __spatial_filtering__.cc:560:   instantiated from here
>>
>> __spatial_filtering__.cc:190: error: conversion from ‘octave_int<unsigned 
>> char>’ to ‘long int’ is ambiguous
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:783: note: 
>> candidates are: octave_int<T>::operator float() const [with T = unsigned 
>> char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:781: note:   
>>               octave_int<T>::operator double() const [with T = unsigned char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:777: note:   
>>               octave_int<T>::operator T() const [with T = unsigned char]
>>
>> __spatial_filtering__.cc:192: error: conversion from ‘octave_int<unsigned 
>> char>’ to ‘long int’ is ambiguous
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:783: note: 
>> candidates are: octave_int<T>::operator float() const [with T = unsigned 
>> char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:781: note:   
>>               octave_int<T>::operator double() const [with T = unsigned char]
>>
>> /usr/local/include/octave-3.4.0/octave/../octave/oct-inttypes.h:777: note:   
>>               octave_int<T>::operator T() const [with T = unsigned char]
>>
>> make: *** [__spatial_filtering__.oct] Error 1
>>
>>
>> ------------------------------------------------------------------------------
>> Simplify data backup and recovery for your virtual environment with vRanger.
>> Installation's a snap, and flexible recovery options mean your data is safe,
>> secure and there when you need it. Discover what all the cheering's about.
>> Get your free trial download today.
>> http://p.sf.net/sfu/quest-dev2dev2
>> _______________________________________________
>> Octave-dev mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/octave-dev
>
>
>

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to