473,509 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6246
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
22592
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
22901
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
4170
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
3677
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
3898
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
18738
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
5492
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
43399
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
9816
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
2494
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
7233
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
7135
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
7342
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
7410
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...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.