sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
201 stars 49 forks source link

Fix multiple definitions if included more than once #7

Closed velnias75 closed 7 years ago

velnias75 commented 8 years ago

In my project Rational I've included InfInt.h twice in two compilation units, causing multiple definitions of both the InfIntException and the static constants.

I found some more small problems for which I will open issuses, but overall all test cases in Rational are succeeding :smile_cat:

alex7071 commented 7 years ago

Tried this. It doesn't work because of the constants which can be defined only once. What worked for me was removing the constants and using 0, 1 and 2 instead of the constants.