M
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<char,std:air<char const
,unsigned long>,std::map<char,unsigned
long>,std:air<char const ,unsigned long> &,std:air<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<char,std:air<char const
,unsigned long>,std::map<char,unsigned
long>,std:air<char const ,unsigned long> const &,std:air<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:air<std::_Tree<char,std:air<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:air<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:air<std::_Tree<char,std:air<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:air<char const ,unsigned
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)
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<char,std:air<char const
,unsigned long>,std::map<char,unsigned
tor<unsigned long> >::iterator,std:air<char const ,unsigned::_Kfn,std::less<char>,std::alloca
long>,std:air<char const ,unsigned long> &,std:air<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<char,std:air<char const
,unsigned long>,std::map<char,unsigned
tor<unsigned long> >::const_iterator,std:air<char const ,unsigned::_Kfn,std::less<char>,std::alloca
long>,std:air<char const ,unsigned long> const &,std:air<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:air<std::_Tree<char,std:air<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:air<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:air<std::_Tree<char,std:air<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:air<char const ,unsigned
haracters in the debug information::const_iterator>' : identifier was truncated to '255' c
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)