473,473 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How I can use BigInt lib?

MK
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 I try build I get:
Why? Help.

:--------------------Configuration: av - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
av.cpp
Compiling...
bigint.cpp
c:\myprojects\av\bigint.cpp(254) : warning C4786:
'std::reverse_bidirectional_iterator<std::_Tree<ch ar,std::pair<char const
,unsigned long>,std::map<char,unsigned
long,std::less<char>,std::allocator<unsigned long>
::_Kfn,std::less<char>,std::alloca tor<unsigned long> >::iterator,std::pair<char const ,unsigned
long>,std::pair<char const ,unsigned long> &,std::pair<char const ,unsigned
long> *,int>' : identifier was truncated to '255' characters in the debug
information
c:\myprojects\av\bigint.cpp(254) : warning C4786:
'std::reverse_bidirectional_iterator<std::_Tree<ch ar,std::pair<char const
,unsigned long>,std::map<char,unsigned
long,std::less<char>,std::allocator<unsigned long>::_Kfn,std::less<char>,std::alloca tor<unsigned long> >::const_iterator,std::pair<char const ,unsigned
long>,std::pair<char const ,unsigned long> const &,std::pair<char const
,unsigned long> const *,int>' : identifier was truncated to '255' characters
in the debug information
c:\myprojects\av\bigint.cpp(254) : warning C4786:
'std::pair<std::_Tree<char,std::pair<char const ,unsigned
long>,std::map<char,unsigned long,std::less<char>,std::allocator<unsigned
long> >::_Kfn,std::less<char>,std::allocator<unsigned long> >::iter
ator,std::_Tree<char,std::pair<char const ,unsigned
long>,std::map<char,unsigned long,std::less<char>,std::allocator<unsigned
long> >::_Kfn,std::less<char>,std::allocator<unsigned long> >::iterator>' :
identifier was truncated to '255' characters in
the debug information
c:\myprojects\av\bigint.cpp(254) : warning C4786:
'std::pair<std::_Tree<char,std::pair<char const ,unsigned
long>,std::map<char,unsigned long,std::less<char>,std::allocator<unsigned
long> >::_Kfn,std::less<char>,std::allocator<unsigned long> >::cons
t_iterator,std::_Tree<char,std::pair<char const ,unsigned
long>,std::map<char,unsigned long,std::less<char>,std::allocator<unsigned
long> >::_Kfn,std::less<char>,std::allocator<unsigned long>::const_iterator>' : identifier was truncated to '255' c

haracters in the debug information
c:\myprojects\av\bigint.cpp(413) : error C2374: 'i' : redefinition; multiple
initialization
c:\myprojects\av\bigint.cpp(379) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(517) : error C2248: 'units_' : cannot access
protected member declared in class 'BaseBigInt'
c:\myprojects\av\bigint.h(101) : see declaration of 'units_'
c:\myprojects\av\bigint.cpp(519) : error C2248: 'units_' : cannot access
protected member declared in class 'BaseBigInt'
c:\myprojects\av\bigint.h(101) : see declaration of 'units_'
c:\myprojects\av\bigint.cpp(521) : error C2248: 'units_' : cannot access
protected member declared in class 'BaseBigInt'
c:\myprojects\av\bigint.h(101) : see declaration of 'units_'
c:\myprojects\av\bigint.cpp(594) : error C2374: 'i' : redefinition; multiple
initialization
c:\myprojects\av\bigint.cpp(570) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(603) : error C2374: 'i' : redefinition; multiple
initialization
c:\myprojects\av\bigint.cpp(570) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(605) : error C2593: 'operator <<' is ambiguous
c:\myprojects\av\bigint.cpp(670) : error C2374: 'i' : redefinition; multiple
initialization
c:\myprojects\av\bigint.cpp(646) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(679) : error C2374: 'i' : redefinition; multiple
initialization
c:\myprojects\av\bigint.cpp(646) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(681) : error C2593: 'operator <<' is ambiguous
c:\myprojects\av\bigint.cpp(724) : error C2593: 'operator <<' is ambiguous
c:\myprojects\av\bigint.cpp(789) : error C2374: 'i' : redefinition; multiple
initialization
c:\myprojects\av\bigint.cpp(755) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1055) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1050) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1651) : error C2593: 'operator <<' is ambiguous
c:\myprojects\av\bigint.cpp(1715) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1691) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1724) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1691) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1794) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1768) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1803) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1768) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1875) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1851) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1884) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1851) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1950) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1928) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(1958) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(1928) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(2025) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(2003) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(2033) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(2003) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(2101) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(2077) : see declaration of 'i'
c:\myprojects\av\bigint.cpp(2110) : error C2374: 'i' : redefinition;
multiple initialization
c:\myprojects\av\bigint.cpp(2077) : see declaration of 'i'
Error executing cl.exe.

av.exe - 26 error(s), 4 warning(s)
--
MK
email: http://tiny.pl/p8
Jul 23 '05 #1
1 3970
MK
Sorry, bad newsgroup

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)

Jul 23 '05 #2

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

Similar topics

3
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...
10
by: MK | last post by:
Hello, I use BigInt lib from: http://www.codeguru.com/Cpp/data/data-misc/values/article.php/c4563/ It doesn't work properly. I describe my problem:...
5
by: Rafał Maj Raf256 | last post by:
Hi, is there some small project that proviedes bigint, best as a C++ class, or just as set of struct/functions (C-style)? Something like GMP and it's bigint, but I want to have it just in one...
2
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...
2
by: Marc Heravi | last post by:
Hello NG, for overflow reasons on numerical accumulation of an int column during SELECTion i have to change the data type of a column from "int" to "bigint". However that doesn't apply to the...
2
by: Enzo's Dad | last post by:
I have an SQL back-end with and Access front end. A table in my SQL db has an auto-num field (integer) that has exceded 70000+ entries. I can add no more to this table unless I convert that field...
0
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
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
0
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
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
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,...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.