Libraries in C++

Hi all,

I have two libraries. one is based targeted on linux platform and uses another library which is windows based by default.

By following the instructions, I was able to build the windows based library in VS 2005 ( VC++) and have the resulting object file library. But, how do I build the other library here, which is linux based.

Any ideas?

the linux based code wont run unless it has the functions and headers from this windows based library.

Many thanks,

Abhijit
What are their names?
Hi helios,

The main library, whose functions want to use, is PRL. It is targeted for linux, but it's authors say that with some modifications, it can be compiled in windows too.

Now, the library, which PRL itself uses, is called miracl. It is basically an arbitrary-precision arithmetic software package used for number theory. It is windows based by default, and I was able to build it on VC++

Regards,

Abhijit
Could I have a link to the PRL website? I can't seem to find it.
Hi Helios,

The PRL is here..

http://spar.isi.jhu.edu/prl/

In the downloaded file, there is a userguide which mentions the use of miracl.


Thanks and Regards,

Abhijit
I also tried adding the PRL source file in the same project where the miracl is built in VC++. But it's not working at all. It is not able to find the miracl's header files, which are already included in the project.

Everything else compiles, except the PRL files.
I'm going to see what I can do with this one, but while I'm at it, see if Crypto++ has the algorithm you need. It's available for many platforms.

EDIT: Okay, I don't know if it's that PRL depends on an older version of miracl or what, but I can't get this to compile no matter what. Some classes used by PRL can't be found anywhere in miracl.
Last edited on
Hi,

Yep. tht's the problem i was facing too... The latest version of miracl is very different..


PRL authors mentioned that they have used miracl3

After much searching, I found it over here..
http://www.cs.sunysb.edu/~algorith/implement/shamus/distrib/

This version of miracl is most close to what PRL is using..


Regards,

Abhi
In another documentation, authors of PRL mentioned that they have used version 4.83 of miracl.

The following link lists all old versions..

ftp://ftp.compapp.dcu.ie/pub/crypto/

There is one names, miracl43.. which i assume should be the one the PRL works on..
I check it.. it does contain elliptic.h, which is not present in other later versions..

For windows, it has instructions for the older version of VS. Not for VS 2005. I'll still try to built it in VS 2005.. lets see wht it says..

Regards,

Abhi
I tried to compile the files in miracl43 by using vs 2005 but it doesnt seem to suppport it..

it doesnt contain any help file for vc2005 either.. later versions of miracl do..

Hi Helios,

Thanks for the help. Since, this thing didn't work I am thingking of trying another way.

I am trying to implement the entire thing and for that I am using a library called PBC which can be found at
http://crypto.stanford.edu/pbc/download.html

Everything is purely windows now.
When I opened the project file of this library in VC and built it, it gave me a same error in almost all the source files...
fatal error C1083: Cannot open include file: 'gmp.h': No such file or directory

even after I added the gmp.h in the header section by using Add Existing items, it still gives the same error..
am I doing something wrong??
Am i dealing with the library in a wrong way??

Topic archived. No new replies allowed.