bug-gsl
[Top][All Lists]
Advanced

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

[Bug-gsl] Re: Bug-gsl Digest, Vol 67, Issue 1


From: Meng-Yuan Huang
Subject: [Bug-gsl] Re: Bug-gsl Digest, Vol 67, Issue 1
Date: Wed, 13 Aug 2008 07:12:50 +0800

------------------------------

Message: 2
Date: Tue, 12 Aug 2008 18:34:51 +1000
From: "Sisyphus" <address@hidden>
Subject: Re: [Bug-gsl] gsl_complex_rect error in Windows
To: "Meng-Yuan Huang" <address@hidden>, <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; format=flowed; charset="big5";
reply-type=original


----- Original Message ----- From: "Meng-Yuan Huang" <address@hidden>
.
.

------------------------------------------------------------------------------
#include <gsl/gsl_complex_math.h>

void a()
{
gsl_complex_rect(0, 1);
}

int main()
{
a();
return 0;
}

------------------------------------------------------------------------------

I've also got a MinGW-built gsl-1.11, and you're program runs without error
for me (Windows Vista SP1).

Did you only try MinGW compiler for my program? Did you try Visual C++ 6.0 for it?
I'm sorry my program compiled by MinGW actually can run correctly.
The "ret 4" assembly instruction generated by MinGW doesn't make programs generated by MinGW wrong,
but it make Visual C++ 6.0 wrong.


You don't actually say how you built your MinGW build of gsl-1.11. I built
mine in the MSYS shell from official source (by running
'./configure --disable-shared --enable-static', 'make', 'make check' and
'make install'. Did you do the same ?

I compiled gsl-1.11 from official source.
I did that:
./configure
make
make install

I compiled my programs with dynamically linked gsl.

In fact, I think the problem is caused by that the assembly codes of functions, generated by MinGW, are not full compatible with Visual C++ 6.0. However, this is not a gsl's problem.

So, shouldn't I develop my programs by Visual C++ 6.0 compiler and libraries generated by MinGW?
However, GnuWin32 project says it can:
------------------------------------------------------------------------------
In general, static and import C libraries from GnuWin32 should be interoperable
with other libraries compiled with Mingw, MSVC and BCC
------------------------------------------------------------------------------
http://gnuwin32.sourceforge.net/summary.html

I may report this problem to this project.

Thanks all.


For me, the only failing tests were the monte tests.

Cheers,
Rob





------------------------------

_______________________________________________
Bug-gsl mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gsl


End of Bug-gsl Digest, Vol 67, Issue 1
**************************************





reply via email to

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