473,500 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BigInt lib not working, help!

MK
Hello,
I use BigInt lib from:
http://www.codeguru.com/Cpp/data/dat...cle.php/c4563/

It doesn't work properly. I describe my problem:
http://www.codeguru.com/Cpp/data/dat...3/?thread=5367

Please, help me!
If anybody have good version of the bigint lib, tell me please

I need use only / * - + operator.
MK
--
email: http://tiny.pl/p8
Jul 23 '05 #1
10 2444

"MK" <@___http://tiny.pl/p8___> wrote in message news:cv**********@news.dialog.net.pl...

[snip]
If anybody have good version of the bigint lib, tell me please

I need use only / * - + operator.


[snip]

Look at
https://sourceforge.net/projects/cpp-bigint/
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn

Jul 23 '05 #2
MK
> [snip]
If anybody have good version of the bigint lib, tell me please

I need use only / * - + operator.


[snip]

Look at
https://sourceforge.net/projects/cpp-bigint/


ok, thx
Could I use this in windows VC++? How?
Jul 23 '05 #3

"MK" <@___http://tiny.pl/p8___> wrote in message news:cv**********@news.dialog.net.pl...
[snip]
If anybody have good version of the bigint lib, tell me please

I need use only / * - + operator.


[snip]

Look at
https://sourceforge.net/projects/cpp-bigint/


ok, thx
Could I use this in windows VC++? How?


I have compiled that (files bigint.cpp and main.cpp) with Microsoft C++ Compiler Version 13.00.9466 via command line.
It works.
You should compile those files with your VC++ compiler.

P.S. Specific questions related to the BigInt C++ class one can ask on C++ BigInt class forums
https://sourceforge.net/forum/forum.php?forum_id=441637
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn

Jul 23 '05 #4
MK
> I have compiled that (files bigint.cpp and main.cpp) with Microsoft C++
Compiler Version 13.00.9466 via command line.
It works.
You should compile those files with your VC++ compiler.


unfortunately, I don't know how to do this,
I create new project (console application).
What file I must include?
When I include bigint.cpp I get many errors, I don't known what does them
mean.
Could you send me simple dsw project file with bigint.cpp and bigint.h?
Please help me, it's very important to me.
Thanks!
MK

--
email: http://tiny.pl/p8
Jul 23 '05 #5

"MK" <@___http://tiny.pl/p8___> wrote in message news:cv**********@news.dialog.net.pl...
I have compiled that (files bigint.cpp and main.cpp) with Microsoft C++ Compiler Version 13.00.9466 via command line.
It works.
You should compile those files with your VC++ compiler.


unfortunately, I don't know how to do this,
I create new project (console application).
What file I must include?


You should include bigint.h and bigint.cpp.
You shouldn't include main.cpp (that file contains testsuites).
When I include bigint.cpp I get many errors, I don't known what does them
mean.
Could you send me simple dsw project file with bigint.cpp and bigint.h?
I don't work with Visual C++. So, unfortunately, I can't send you a dsw project.

But I think, all you need is to add bigint.h and bigint.cpp to your project.
Please help me, it's very important to me.
Thanks!
MK

[snip]

P.S. If you have any specific questions related to the BigInt C++ class, one can ask on C++ BigInt class forums
https://sourceforge.net/forum/forum.php?forum_id=441637
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn

Jul 23 '05 #6
On Wed, 23 Feb 2005 21:48:36 +0100, MK
<> wrote:
I use BigInt lib from:
http://www.codeguru.com/Cpp/data/dat...cle.php/c4563/

It doesn't work properly. I describe my problem:
http://www.codeguru.com/Cpp/data/dat...3/?thread=5367

Please, help me!
If anybody have good version of the bigint lib, tell me please

I need use only / * - + operator.


Have a look at gmp, that has a C++ interface and is optimised for many
platforms, I haven't found any bugs in its arithmetic.

http://www.swox.com/gmp/

Chris C
Jul 23 '05 #7
MK
unfortunately, I don't know how to do this,
I create new project (console application).
What file I must include?


You should include bigint.h and bigint.cpp.
You shouldn't include main.cpp (that file contains testsuites).


I do this.
When I build I get following error:

"c:\myprojects\av\bigint.cpp(2129) : fatal error C1010: unexpected end of
file while looking for precompiled header directive"

I don't know why :(
Jul 23 '05 #8
MK wrote:
unfortunately, I don't know how to do this,
I create new project (console application).
What file I must include?


You should include bigint.h and bigint.cpp.
You shouldn't include main.cpp (that file contains testsuites).


I do this.
When I build I get following error:

"c:\myprojects\av\bigint.cpp(2129) : fatal error C1010: unexpected end of
file while looking for precompiled header directive"

I don't know why :(


Then you didn't create a console application, this would
have disabled the option of 'using a precompiled header'.

Anyway: From the menu, select 'Project' - 'Settings'.
In the dialog, select the file 'bigint.cpp' in the file tree on the left.
Select the tab 'C/C++' in the right half of the dialog. In the combo box
'Category' choose 'Precompiled headers'. Then select 'Not using precompiled
headers'.

BTW: All of this has nothing to do with C++ as language. It is a problem
of 'using your development equipment' and as such is not topical in this
newsgroup. Search for a different newsgroup, eg. one with VC++ in its name.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 23 '05 #9
Chris Croughton <ch***@keristor.net> wrote in message news:<sl******************@ccserver.keris.net>...
On Wed, 23 Feb 2005 21:48:36 +0100, MK
<> wrote:
I use BigInt lib from:
http://www.codeguru.com/Cpp/data/dat...cle.php/c4563/

It doesn't work properly. I describe my problem:
http://www.codeguru.com/Cpp/data/dat...3/?thread=5367

Please, help me!
If anybody have good version of the bigint lib, tell me please

I need use only / * - + operator.


Have a look at gmp, that has a C++ interface and is optimised for many
platforms, I haven't found any bugs in its arithmetic.

http://www.swox.com/gmp/

Chris C

I used MIRACL in a term project. It has good examples, documents and
well structure C/C++ source codes. It supports both big interger and
big real.

Nalerk NIDA
Jul 23 '05 #10

"SUPER_SOCKO" <am******@gmail.com> wrote in message
news:64**************************@posting.google.c om...
Chris Croughton <ch***@keristor.net> wrote in message
news:<sl******************@ccserver.keris.net>...
On Wed, 23 Feb 2005 21:48:36 +0100, MK
<> wrote:
> I use BigInt lib from:
> http://www.codeguru.com/Cpp/data/dat...cle.php/c4563/
>
> It doesn't work properly. I describe my problem:
> http://www.codeguru.com/Cpp/data/dat...3/?thread=5367
>
> Please, help me!
> If anybody have good version of the bigint lib, tell me please
>
> I need use only / * - + operator.


Have a look at gmp, that has a C++ interface and is optimised for many
platforms, I haven't found any bugs in its arithmetic.

http://www.swox.com/gmp/

Chris C

I used MIRACL in a term project. It has good examples, documents and
well structure C/C++ source codes. It supports both big interger and
big real.

Nalerk NIDA


You can also Write your own library. for * / - + its not that hard, for Real
#'s it starts to get difficult, but not impossible.
Jul 23 '05 #11

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

Similar topics

3
8063
by: KK | last post by:
Hi, im working on this bigInt class. Need help writing algorithm for the operator*, andy help will be appreciated. Thanks in advance bigInt.h...
1
3972
by: MK | last post by:
I need div two big int. I use this lib: https://sourceforge.net/projects/cpp-bigint/ I create simple project and include two file bigint.h and bigint.cpp (Precompiled headers is not using) When...
2
3107
by: Jon | last post by:
Since there is no native support for 64bit integers in dbExpress, it is not trivial to fetch a BIGINT from SQL 2k. If it is possible, how can a BIGINT be fetched using TParam or TField? Any...
0
1872
by: Dan Ruthers | last post by:
Hi, I have read in this list and elsewhere the problem with indexes and big int. Still, I have an index that is used or not, depending of the parameter value used in the query. I am using...
2
4023
by: Dave Bazell | last post by:
I was using Math::BigInt and found that postive integers have a leading plus sign: +12345678900000 Is there a way to supress this? Thanks, Dave
5
6754
by: mamorgan1 | last post by:
We made a poor decision a long time ago when designing our database structure. We used bigint data types as the identity keys for many of our base tables. For many reasons I would like to change...
1
4578
by: rharding | last post by:
I have a SQL database which contains a table (TblA) with a field (Fld1) defined as "bigint". When the SQL table is linked to Access the design view of the linked table shows this field as a data type...
7
8537
by: scoots987 | last post by:
Does anyone have a suggestion to do this? I have a table in SQL Server that has it's primary key as Bigint. When viewing directly with ODBC all the fields and rows show "#Deleted". I've tried to...
0
1179
by: SQLGuy | last post by:
My company had a partitioned view across 5 SQL 2000 and 2005 clusters, with 1.9B rows of data, with the key using datatype of int. At this point, we need to convert everything to bigint very soon. We...
0
7136
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
7018
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...
1
6906
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5490
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
3110
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...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
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.