help-octave
[Top][All Lists]
Advanced

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

RE: Compiling Octave 3.2.3 with icpc 10.1 fails: more than one instance


From: RUSS BRENNAN
Subject: RE: Compiling Octave 3.2.3 with icpc 10.1 fails: more than one instance of overloaded function "octave_int_cmp_op::mop"
Date: Mon, 23 Aug 2010 11:27:35 -0500

I upgraded to 11.1 and the problem persists:

address@hidden ~]# icpc -v
Version 11.1
address@hidden ~]# icpc -c test.cc
test.cc(9): error: more than one instance of overloaded function "method" matches the argument list:
            function template "void method<X,T>(double, T)"
            function template "void method<X>(double, long)"
            argument types are: (double, long)
    method<A> (u, v);
    ^

compilation aborted for test.cc (code 2)

Is the patch that you refer to applied to octave or the intel compiler?  In either case, if there's any chance that you can locate it I would much appreciate it.  I'm pulling my hair out here trying to get this thing to compile!  Are you on a 64-bit platform by chance?  I'm working on 32 bit right now.




> Date: Mon, 23 Aug 2010 09:22:06 +0200
> Subject: Re: Compiling Octave 3.2.3 with icpc 10.1 fails: more than one instance of overloaded function "octave_int_cmp_op::mop"
> From: address@hidden
> To: address@hidden
> CC: address@hidden
>
> On Sun, Aug 22, 2010 at 4:56 PM, RUSS BRENNAN <address@hidden> wrote:
> > I am using:
> > icpc (ICC) 11.0 20090131
> > Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.
> >
> > Try compiling this with your version of icpc:
> > test.cc:
> > class A {};
> >
> > template <class X, class T> void method (double u, T v);
> >
> > template <class X> void method (double u, long v);
> >
> > int main (){
> >   double u(0); long v(0);
> >   method<A> (u, v);
> > }
> >
> > using icpc -c test.cc
> >
> > Here is what I get:
> > address@hidden ~]# icpc -c test,cc
> > icpc: error #10104: unable to open 'test,cc'
> > address@hidden ~]# icpc -c test.cc
> > test.cc(9): error: more than one instance of overloaded function "method"
> > matches the argument list:
> >             function template "void method<X,T>(double, T)"
> >             function template "void method<X>(double, long)"
> >             argument types are: (double, long)
> >     method<A> (u, v);
> >     ^
> >
> > compilation aborted for test.cc (code 2)
> >
> >
> > If you can compile that with icpc, then I'll agree that my compiler is
> > funky!  I pulled that example oddly enough from someone that you helped in
> > February:
> > http://permalink.gmane.org/gmane.comp.gnu.octave.maintainers/17942
> >
>
> I can compile this normally. But I've got to apologize; my compiler is
> in fact version 11.1 (11.1 20100414), I was confused by the way our
> admin did the latest installations. So that may explain the
> difference. I now recall that I used a special patch to workaround
> this issue, but I can't find it anymore (probably deleted it when the
> latest upgrade fixed the bug).
>
>
>
> --
> RNDr. Jaroslav Hajek, PhD
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz

reply via email to

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