Mike,

I believe you also need to add the libraries to your link statement
configuration.

Dan



Please respond to openssl-users@openssl.org
Sent by: owner-openssl-users@openssl.org
To: openssl-users@openssl.org
cc: (bcc: Dan Mitton/YD/RWDOE)
Subject: Microsoft Visual C++
LSN: Not Relevant
User Filed as: Not a Record

Hello,
I'm trying to compile in Microsoft Visual C++ Express and I'm getting
linker errors like:

error LNK2019: unresolved external symbol _BIO_gets referenced in function
"char * __cdecl sr_encrypt(char *,struct _iobuf *)"
(?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)

I got the header files all setup, but I can't get the libs working. I
followed the help and copied the lib files to C:\Program Files\Microsoft
Visual Studio 9.0\VC\lib .

Anybody know what i'm missing?

Mike Luich

1>------ Build started: Project: sr_trillian_plugin, Configuration: Debug
Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>sr_trillian_plugin.cpp
1>c:\users\mluich\documents\visual studio
2008\projects\sr_trillian_plugin\sr_trillian_plugi n\sr_trillian_plugin.cpp(194)
: warning C4129: '%' : unrecognized character escape sequence
1>c:\users\mluich\documents\visual studio
2008\projects\sr_trillian_plugin\sr_trillian_plugi n\sr_trillian_plugin.cpp(247)
: warning C4129: '%' : unrecognized character escape sequence
1>Compiling...
1>dllmain.cpp
1>Linking...
1> Creating library C:\Users\mluich\Documents\Visual Studio
2008\Projects\sr_trillian_plugin\Debug\sr_trillian _plugin.lib and object
C:\Users\mluich\Documents\Visual Studio
2008\Projects\sr_trillian_plugin\Debug\sr_trillian _plugin.exp
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_BIO_gets referenced in function "char * __cdecl sr_encrypt(char *,struct
_iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_BIO_ctrl referenced in function "char * __cdecl sr_encrypt(char *,struct
_iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_BIO_ctrl_pending referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_SMIME_write_PKCS7 referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_PKCS7_encrypt referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_sk_push referenced in function "char * __cdecl sr_encrypt(char *,struct
_iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_PEM_read_X509 referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_BIO_new referenced in function "char * __cdecl sr_encrypt(char *,struct
_iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_BIO_s_mem referenced in function "char * __cdecl sr_encrypt(char *,struct
_iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_BIO_new_mem_buf referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_RAND_load_file referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_ERR_load_crypto_strings referenced in function "char * __cdecl
sr_encrypt(char *,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_OPENSSL_add_all_algorithms_noconf referenced in function "char * __cdecl
sr_encrypt(char *,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_sk_new_null referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_EVP_des_ede3_cbc referenced in function "char * __cdecl sr_encrypt(char
*,struct _iobuf *)" (?sr_encrypt@@YAPADPADPAU_iobuf@@@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_ERR_error_string referenced in function "char * __cdecl sr_decrypt(char
*,char *)" (?sr_decrypt@@YAPADPAD0@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_ERR_get_error referenced in function "char * __cdecl sr_decrypt(char
*,char *)" (?sr_decrypt@@YAPADPAD0@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_PKCS7_decrypt referenced in function "char * __cdecl sr_decrypt(char
*,char *)" (?sr_decrypt@@YAPADPAD0@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_ERR_print_errors_fp referenced in function "char * __cdecl
sr_decrypt(char *,char *)" (?sr_decrypt@@YAPADPAD0@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_SMIME_read_PKCS7 referenced in function "char * __cdecl sr_decrypt(char
*,char *)" (?sr_decrypt@@YAPADPAD0@Z)
1>sr_trillian_plugin.obj : error LNK2019: unresolved external symbol
_PEM_read_PrivateKey referenced in function "char * __cdecl
sr_decrypt(char *,char *)" (?sr_decrypt@@YAPADPAD0@Z)
1>C:\Users\mluich\Documents\Visual Studio
2008\Projects\sr_trillian_plugin\Debug\sr_trillian _plugin.dll : fatal
error LNK1120: 21 unresolved externals
1>Build log was saved at "file://c:\Users\mluich\Documents\Visual Studio
2008\Projects\sr_trillian_plugin\sr_trillian_plugi n\Debug\BuildLog.htm"
1>sr_trillian_plugin - 22 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org