octave-maintainers
[Top][All Lists]
Advanced

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

Re: error when compiling Octave in Cygwin


From: Ivan Sutoris
Subject: Re: error when compiling Octave in Cygwin
Date: Fri, 12 Dec 2008 14:55:46 +0100

On Fri, Dec 12, 2008 at 2:28 PM, Jaroslav Hajek <address@hidden> wrote:
> On Fri, Dec 12, 2008 at 2:12 PM, Ivan Sutoris <address@hidden> wrote:
>> Thanks for the replies. I'm not insisting on using 3.4.4, it's just
>> the default version in Cygwin :) Following Dmitri's advice, I found
>> out that Cygwin includes also gcc 4.3.2 (executables have suffix
>> "-4"), so I tried to run configure script with parameters "CC=gcc-4
>> CXX=g++-4 F77=gfortran-4", which went well. The same errors, however,
>> appeared again during compilation. Are there any other configure flags
>> one should setup?
>>
>
> No. Please verify in Makeconf that your configuration was properly
> applied (or may have seen that during the compilation from the
> commands).
>
> Can you try compiling (not linking) the attached test program and tell
> me the result? To be sure, I asked about the issue on comp-lang-c++.
> But it seems to me that either there's a mistake on your side, or
> you've discovered a bug in the cygwin port of gcc. In the latter case,
> your proper way is to file a bug report to cygwin maintainers.
>
> regards,
>
>
>
> --
> RNDr. Jaroslav Hajek
> computing expert
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>

I'm attaching Makeconf, but it seems that right executables were
called. I tried to compile your program with both versions of
compiler, and there is indeed a difference:

$ g++ -c test.cc
test.cc: In function `int main()':
test.cc:10: error: call of overloaded `method(double&, long int&)' is ambiguous
test.cc:3: note: candidates are: void method(double, T) [with X = A, T
= long int]
test.cc:5: note:  void method(double, long int) [with X = A]

$ g++-4 -c test.cc
[... no errors here]

Regards
Ivan Sutoris

Attachment: Makeconf
Description: Binary data


reply via email to

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