473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

long double type in windows dll

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
Jul 19 '05 #1
4 6240
Karen Lau wrote in news:4f*************************@posting.google.co m:
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.
--
http://www.victim-prime.dsl.pipex.com/
Jul 19 '05 #2
> 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
Jul 19 '05 #3
On Wed, 6 Aug 2003 05:13:44 +0100, "Stephen Howe" <NO**********@dial.pipex.com> wrote:
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.


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.

Jul 19 '05 #4
> 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
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: f | last post by:
I have this double sum, a, b, c; sum = a + b + c; printf("%.20f = %.20f, %.20f, %.20f", sum, a, b, c); I found that the debug version and release version of the same code give me different...
5
by: Piotr B. | last post by:
Hello, I use MingGW g++ 3.2.3 on Windows 2000/AMD Athlon XP. I tried to output a "long double" variable using stdio printf(). I've tried various %formats (%llf, %Lf etc.), but none of them...
4
by: Michael Mair | last post by:
Hi there, actually, I have posted the same question in g.g.help. As there were no answers, I am still not sure whether this is a bug or only something open to the compiler that is seemingly...
22
by: bq | last post by:
Hello, Two questions related to floating point support: What C compilers for the wintel (MS Windows + x86) platform are C99 compliant as far as <math.h> and <tgmath.h> are concerned? What...
15
by: michael.mcgarry | last post by:
Hi, I have a question about floating point precision in C. What is the minimum distinguishable difference between 2 floating point numbers? Does this differ for various computers? Is this...
10
by: Bryan Parkoff | last post by:
The guideline says to use %f in printf() function using the keyword float and double. For example float a = 1.2345; double b = 5.166666667; printf("%.2f\n %f\n", a, b);
69
by: fieldfallow | last post by:
Hello all, Before stating my question, I should mention that I'm fairly new to C. Now, I attempted a small demo that prints out the values of C's numeric types, both uninitialised and after...
12
by: Zero | last post by:
Hi everybody, i want to write a small program, which shows me the biggest and smallest number in dependance of the data type. For int the command could be: ...
67
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the...
28
by: silvia.fama | last post by:
Hi! I'm using c language. I need to copy a long type value into a char string using a memcpy function: memcpy(string, (long *) value, len) this value will be then insert into a database. On...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.