floodyberry / ed25519-donna

Implementations of a fast Elliptic-curve Digital Signature Algorithm
169 stars 47 forks source link

How to link with c++? #9

Closed ghost closed 10 years ago

ghost commented 10 years ago

This lib seems to have incredible performance! Thank you!

I'm very much a c/c++ noob, and I'm having trouble compiling.

First, I can't find the -mbits flag. What is the usage for g++/gcc?

Also, is it OK not to use the -m32 or -m64 flags and allow the compiler to discover the CPU itself?

Also, I really have no idea how to link your library except at a very superficial level. Can you please show me how?

Crosspost: http://stackoverflow.com/questions/21858228/how-to-properly-link-ed25519-donna-with-c-where-is-the-mbits-flag

ghost commented 10 years ago

Solved.