hello everyone,   i'll try to keep this short, and the good info up front.


i need to install cryptlib ( 
http://www.cs.auckland.ac.nz/~pgut001/cryptlib/ ) on a linux machine

it's RedHat 6.2, but i'm hoping that won't matter too much to you guys :)

i've done     make    make shared     and    make test    and all run just 
fine, my problem is in referencing it from the *.c file, the compiler 
complains that it can't find the cryptInit (or any other cryptlib 
function), though i have   done the requisit    #include <cryptlib.h>

i've also tried putting the cryptlib.h file in the same dir 
and  using  #include "cryptlib.h"
same deal.

the best help i could find on the 'net for install of this is:
http://www.kelvin.free-online.co.uk/cryptlib_help_files/cryptlib.html
which helpfully says:
" Depending on your system
          setup and privileges you may need to either copy the shared 
library to /usr/lib
          or set the LD_LIBRARY_PATH environment variable to make sure the 
shared
          library is used."

so, i've copied the .so to /usr/lib and run ldconfig, but this did not seem 
to work either.
(also copied the .o and .a files to /usr/lib)

i fiddled with setting up the linkage manually as well, but no joy.

what i need to be able to is use the shared lib, and i'm fairly sure this 
is a shared lib problem because of the reference to  ld in the error from 
the compiler:
" undefined reference to `cryptInit'
collect2: ld returned 1 exit status"

any help is GREATLY appreciated!
thanks!


Reply via email to