Thread: Ask about these "unresolved external symbol" error

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    68

    Lightbulb Ask about these "unresolved external symbol" error

    I use visual C++ 6.0 to compile my program . When I compile there are these error message. If you know how to solve this error,please tell me. Thank you.


    --------------------Configuration: Sticker - Win32 Debug--------------------
    Compiling...
    StickerDoc.cpp
    Linking...
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptAddRandom@8
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptInit@0
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptEnd@0
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptGetRandom@8
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptQueryRSA@8
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptDestroyContext@4
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptGenerateKeyEx@8
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptCreateContext@12
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptDecrypt@12
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptLoadIV@12
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptDeriveKey@12
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptQueryContext@8
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptRetrieveIV@8
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptEncrypt@12
    Crypt.obj : error LNK2001: unresolved external symbol __imp__cryptLoadKey@12
    Debug/Sticker.exe : fatal error LNK1120: 15 unresolved externals
    Error executing link.exe.

    Sticker.exe - 16 error(s), 0 warning(s)

  2. #2
    Registered User raimo's Avatar
    Join Date
    Jun 2002
    Posts
    107
    Obviously some functions are missing when the compiler is trying to link the program. It could be an object file or a library which is missing. I could guess that it has something to do with RSA encryption.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM