sercantutar / infint

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

Duplicate Symbols Bug #4

Closed Cryptopractor closed 7 years ago

Cryptopractor commented 8 years ago

There is a problem with the constant definitions at lines 130-132 of the header file.

If InfInt.h is included anywhere in your project more that once building will fail and the linker will complain that there are multiply defined symbols.

This is a show-stopper if you are using InfInt in a large project.

alex7071 commented 7 years ago

Had the same problem. The only workaround available is to comment out the lines, which means you cannot use some operators without further code changing. Alternatively, this pull request seems allright.

alex7071 commented 7 years ago

Tried the pull mentioned above. It doesn't work. What worked for me was removing the constants and using 0, 1 and 2 instead of the constants.