Re: Help Needed



On 15 Jul 2006 22:19:57 -0700, "chitra" <chitra.conics@xxxxxxxxx>
wrote:




hello i m new to this group and all the ecc stuffs.
i m doin a prj in ecc and using openssl. i was able to configure
openssl successfully.
but when i try to execute a test program provided in openssl demo, i
get linking errors though the required header files are present. to be
precise i get the errors

ecdsatest.obj : error LNK2001: unresolved external symbol
_RAND_set_rand_method
ecdsatest.obj : error LNK2001: unresolved external symbol
_RAND_get_rand_method
ecdsatest.obj : error LNK2001: unresolved external symbol _BN_bn2bin
ecdsatest.obj : error LNK2001: unresolved external symbol _BN_free
ecdsatest.obj : error LNK2001: unresolved external symbol _BN_dec2bn

and lots more... similar to the above.....

so kindly help me
chitra
"Unresolved external symbol" means that the linker cannot find the
definition of something.

The two most common causes are:

1 You have not #include'ed some essential header file.

2 Your compiler/linker does not know where to look for the .c (or
whatever) file that goes with the header file.

To solve 1, look at all the header files that came with openSSL and
see which ones contain the symbols mentioned: _RAND_set_rand_method
etc. Make sure that you #include all of the relevant files.

To solve 2, look at the documentation for your compiler/linker to find
out how to tell it what directories to search for things. If you are
using an IDE then you might need to add the required .c files to your
project explicitly.

rossum

.



Relevant Pages

  • Re: Base64 Encoding Library
    ... William Ahern writes: ... >> openssl is freely available. ... > header files, and couldn't find it, though. ... Måns Rullgård ...
    (comp.unix.programmer)
  • Re: ssh version numbering...
    ... I've looked at ALL of the header files for openssl everywhere I can ... that will show you against which libraries your ssh binaries were linked. ... since libcrypto is the library from your OpenSSL package. ... Search for the version string, it should be exactly the version string ...
    (SSH)
  • Re: ssh version numbering...
    ... I've looked at ALL of the header files for openssl everywhere I can ... There's probably another OpenSSL installation someplace. ... Good judgement comes with experience. ...
    (SSH)
  • Re: dropped connection with openssh4.2
    ... I think what is going on is I didn't build openssl 0.9.8a as "shared" ... and it using the header files for 0.9.8a but it looks like it ... ilaiy wrote: ... Prev by Date: ...
    (SSH)
  • Re: Help Needed
    ... hello i m new to this group and all the ecc stuffs. ... i m doin a prj in ecc and using openssl. ... ecdsatest.obj: error LNK2001: unresolved external symbol ...
    (sci.crypt)