 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
bpazolli Guest
|
Posted: Sun Dec 31, 2006 5:19 am Post subject: The GNU Multiple Precision Arithmetic |
|
|
Can some one help me to get The GNU Multiple Precision Arithmetic
Library working with my Borland C++ Command Line Compiler 5.5. I got
the library and header pre compiled from some website, but I don't
think they work with my compiler. Does anyone use the GMP with BCC. I
have created a program but I get all of these linking errors such as.
Error: Unresolved external '_mpf_init' referenced from C:\A Bunch of My
Folders\MAIN2.OBJ
Error: Unresolved external '_mpf_set_si' referenced from C:\A Bunch of
My Folders\MAIN2.OBJ
Error: Unresolved external '_mpf_ui_div' referenced from C:\A Bunch of
My Folders\MAIN2.OBJ
Error: Unresolved external '_mpf_add' referenced from C:\A Bunch of My
Folders\MAIN2.OBJ
Error: Unresolved external '_mpf_mul_ui' referenced from C:\A Bunch of
My Folders\MAIN2.OBJ
Error: Unresolved external '_mpf_get_str' referenced from C:\A Bunch of
My Folders\MAIN2.OBJ
Help Me,
Ben Pazolli |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Sun Dec 31, 2006 5:47 am Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
bpazolli wrote:
| Quote: | Can some one help me to get The GNU Multiple Precision Arithmetic
Library working with my Borland C++ Command Line Compiler 5.5. I got
the library and header pre compiled from some website, but I don't
think they work with my compiler. Does anyone use the GMP with BCC. I
have created a program but I get all of these linking errors such as.
|
You need to create an import library from the precompiled dll. If the BCC5.5
compiler includes implib, then run this command:
implib GMP.lib <GMP dll name here>.dll
Then, link that library into your code using a #pragma link GMP.lib in the
source.
HTH
Jonathan |
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Sun Dec 31, 2006 5:11 pm Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
bpazolli wrote:
| Quote: | I got
the library and header pre compiled
[...]
Error: Unresolved external '_mpf_init' referenced from C:\A Bunch of My
[...] |
What do you mean with precompiled?
If you get a .lib file with the library, link your application against
that lib file.
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
---------------------------------------- |
|
| Back to top |
|
 |
Bob Gonder Guest
|
Posted: Sun Dec 31, 2006 8:01 pm Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
bpazolli wrote:
| Quote: | Can some one help me to get The GNU Multiple Precision Arithmetic
Library working with my Borland C++ Command Line Compiler 5.5. I got
the library and header pre compiled from some website,
|
Exactly which "some website" did you get these from?
GMP doesn't seem to ship with any libraries.
The install process is supposed to compile the library for your
machine. But it doesn't look like it is setup to use Borland
compilers, so you would need to do it the hard way. |
|
| Back to top |
|
 |
bpazolli Guest
|
Posted: Mon Jan 01, 2007 12:10 am Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
Bob Gonder wrote:
| Quote: | bpazolli wrote:
Can some one help me to get The GNU Multiple Precision Arithmetic
Library working with my Borland C++ Command Line Compiler 5.5. I got
the library and header pre compiled from some website,
Exactly which "some website" did you get these from?
GMP doesn't seem to ship with any libraries.
The install process is supposed to compile the library for your
machine. But it doesn't look like it is setup to use Borland
compilers, so you would need to do it the hard way.
|
Here is that 'some website' http://www.dr-mikes-maths.com/libgmp.html
I did the 'sounds too troublesome' |
|
| Back to top |
|
 |
Alan Bellingham Guest
|
Posted: Mon Jan 01, 2007 2:38 am Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
"bpazolli" <bpazolli (AT) gmail (DOT) com> wrote:
You are aware that compiled libraries (not import libraries for DLLs,
but compiled libraries) are not only compiler specific, but compiler
version specific and even compile settings specific, aren't you?
From that page:
-----------------------------------------------------------------------------
The libgmp.a file I provided is still not a library for windows
programs, but rather for a DOS extender environment. It needs to be
linked with djgpp. I haven't tried other compilers for dos programs.
I used RSXNTDJ version 1.6b to create a library libgmpw.a, which is
useful for creating genuine windows programs. However, I haven't had
time to include this file into the zipfile, or upload the patch that
creates it. Sorry.
So far, nobody (that I know of) has been able to get the libraries to
work with MS Visual C++. Three have tried and failed and contacted me. I
use the RSXNTDJ compiler to link my library into my programs. Soon (I
hope) I will have access to MSVC++. I hope then to have time to get the
library working with that package.
Has anyone tried it with any other compilers, whether successfully or
not? Please let me know!
The highest version of GMP currently available is 3.0.1 (as of this
writing). When they include FFT multiplications, I will put an updated
library together.
-----------------------------------------------------------------------------
So, this is a library, precompiled for use with the DJGPP compiler and
linker. It doesn't work with Visual C++, and nobody has even been known
to try it with any other compiler.
You almost certainly need to compile the sources yourself, with the
Borland compiler, and give up on using this precompiled library.
Alan Bellingham
--
Team Thai Kingdom
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html> netiquette |
|
| Back to top |
|
 |
bpazolli Guest
|
Posted: Mon Jan 01, 2007 9:10 am Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
Alan Bellingham wrote:
| Quote: | "bpazolli" <bpazolli (AT) gmail (DOT) com> wrote:
Here is that 'some website' http://www.dr-mikes-maths.com/libgmp.html
I did the 'sounds too troublesome'
You are aware that compiled libraries (not import libraries for DLLs,
but compiled libraries) are not only compiler specific, but compiler
version specific and even compile settings specific, aren't you?
|
No I am not aware, I just started using c++. Maybe I was doing
something too complicated. If any one can help me or give me a compiled
library for C++ 5.5, I would appreciate it. |
|
| Back to top |
|
 |
Darko Miletic Guest
|
Posted: Thu Jan 04, 2007 7:31 pm Post subject: Re: The GNU Multiple Precision Arithmetic |
|
|
bpazolli wrote:
| Quote: | Can some one help me to get The GNU Multiple Precision Arithmetic
Library working with my Borland C++ Command Line Compiler 5.5. I got
the library and header pre compiled from some website, but I don't
think they work with my compiler. Does anyone use the GMP with BCC. I
have created a program but I get all of these linking errors such as.
|
On windows you will be able to use this library only with mingw or
cygwin gcc compilers. If you do not like that than you will have to do a
conversion for borland compiler yourself. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|