long double type in windows dll

K

Karen Lau

Hi All,

I am trying to port some C++ libaries from Solaris to Windows to
create a dll. The library requires the use of long double data type
which is not supported by Microsoft Visual C++. Could anyone suggest
any other compiler that could do the job?

any suggestion would be much appreciated.

Thanks
 
R

Rob Williscroft

Karen Lau wrote in
Hi All,

I am trying to port some C++ libaries from Solaris to Windows to
create a dll. The library requires the use of long double data type
which is not supported by Microsoft Visual C++. Could anyone suggest
any other compiler that could do the job?

any suggestion would be much appreciated.

g++ (gcc) see: http://www.mingw.org/ for a windows version
also borland have tools set see:
http://www.borland.com/cbuilder/cppcomp/index.html

HTH

Rob.
 
S

Stephen Howe

I am trying to port some C++ libaries from Solaris to Windows to
create a dll. The library requires the use of long double data type
which is not supported by Microsoft Visual C++.

Good news!!!! You are mistaken. It is supported.

Stephen Howe
 
A

Alf P. Steinbach

Good news!!!! You are mistaken. It is supported.

Depends what you mean. In MSVC 'long double' maps to 'double', i.e.
IEEE/IEC 64 bit. What's needed is probably the 80-bit format (which
is used at the hardware level for floating point computations),
although I don't see why the extra precision would be desirable.
 
S

Stephen Howe

Depends what you mean. In MSVC 'long double' maps to 'double', i.e.
IEEE/IEC 64 bit. What's needed is probably the 80-bit format (which
is used at the hardware level for floating point computations)

I realise that. But the OP did not ask for IEEE 80-bit format for long
double.
She just said long double was not supported and I contradicted her.

Stephen Howe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top