473,799 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OpenSSL projects in VC2008

Tan
Hi folk,

I'm trying to install latest OpenSSL version in VS2008 Express Edition
on WinXP. I have downloaded and installed the redistributable for VC+
+2008 (including SP1), and also installed the latest version of pre-compiled
version of OpenSSL from /www.shiningligh tpro.com/products/
Win32OpenSSL.ht ml website. So AFAIK there is no need for Perl script
compilation and NASM, MASM issue as long as I have the pre-compiled
binaries. If I'm mistaken please correct me? I'm sure that I have set
VC++2008
search directory/path and Additional dependency directory
properly(ssleay 32MT.lib, libeay32MD.lib, etc..). But when i run the code,
even with the simple code as that
#include "stdafx.h"
#include "stdlib.h"
#include "winsock.h"
//OPENSSL INCLUSION HEADERS
#include "openssl/ssl.h"
#include <openssl/ssl3.h>
#include <openssl/x509.h>
#include <openssl/err.h>
#include <openssl/crypto.h>
int _tmain(int argc, _TCHAR* argv[])
{
printf("New console application has been created\n");

}
I get many linker errors, it seems at the start of the line,
libeay32MT.lib is loaded but probelm with bss_sock.obj, cryptlib exist.
Those
errors and fuctions seems like Win native functions (such as
GetDesktopWindo w, MessageBoxA etc) don't think they are related with
OpenSSL..

1>libeay32MT.li b(bss_sock.obj) : error LNK2001: unresolved external symbol
_closesocket@4
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
mp__GetUserObje ctInformationW@ 20
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
_imp__GetProces sWindowStation@ 0
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__GetDeskt opWindow@0
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__MessageB oxA@16
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__Deregist erEventSource@4
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__ReportEv entA@36
1>libeay32MT.li b(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__Register EventSourceA@8
..

Probably something is still not completed (or not implemented) with VC2008
causing these errors.

Any help will be appreciated.
Best Regards,

Sep 19 '08 #1
4 4888

"Tan" <no****@hotmail .comha scritto nel messaggio
news:OR******** ******@TK2MSFTN GP04.phx.gbl...
I get many linker errors, it seems at the start of the line,
libeay32MT.lib is loaded but probelm with bss_sock.obj, cryptlib exist.
Those
errors and fuctions seems like Win native functions (such as
GetDesktopWindo w, MessageBoxA etc) don't think they are related with
OpenSSL..
Functions like GetDesktopWindo w() are defined in User32.dll, and you should
link with user32.lib.

I don't know about VC++ 2008 Express, but this is done automatically with
commercial VS2008 editions, like VS2008 Professional.

Giovanni

Sep 19 '08 #2
Tan
I agree, it made me think that something is malfunctioning in VC2008 EE due
to the fact it's a beta version. I'll play around a bit more to make sure
that probelm is VC2008 EE related.

One more thing to clarify, at Project Settings->Linker
tab->Input ->Additional Dependecy in "inherited values" i can't see the
user32.lib, gdi32.lib, kernel32.lib etc.. as well. So I made the linking
manually( still not sure that /LIBPATH: precedence should be used or not
before the library name) but this time the lib's reside in <C:\Program
Files\Microsoft SDKs\Windows\v6 .0A\Librather than <C:\Program
Files\Microsoft Visual Studio 9.0\VC\liblocat ion. Do you think that's
normal ?

thnx in advance,

"Giovanni Dicanio" <gi************ ****@REMOVEMEgm ail.comwrote in message
news:Og******** ******@TK2MSFTN GP05.phx.gbl...
>
"Tan" <no****@hotmail .comha scritto nel messaggio
news:OR******** ******@TK2MSFTN GP04.phx.gbl...
>I get many linker errors, it seems at the start of the line,
libeay32MT.l ib is loaded but probelm with bss_sock.obj, cryptlib exist.
Those
errors and fuctions seems like Win native functions (such as
GetDesktopWind ow, MessageBoxA etc) don't think they are related with
OpenSSL..

Functions like GetDesktopWindo w() are defined in User32.dll, and you
should link with user32.lib.

I don't know about VC++ 2008 Express, but this is done automatically with
commercial VS2008 editions, like VS2008 Professional.

Giovanni


Sep 19 '08 #3

"Tan" <no****@hotmail .comha scritto nel messaggio
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>it made me think that something is malfunctioning in VC2008 EE due to the
fact it's a beta version.
VS2008 EE is no more in beta... instead, you can already download the SP1
(which I would suggest you to do).
I'll play around a bit more to make sure that probelm is VC2008 EE
related.
I would suggest you to try to create a trivial Win32 applications and see
what happens...
Then, if that builds fine, you can add OpenSL files.
lib's reside in <C:\Program Files\Microsoft SDKs\Windows\v6 .0A\Librather
than <C:\Program Files\Microsoft Visual Studio 9.0\VC\liblocat ion. Do
you think that's normal ?
I think the Win32 Platform SDK is installed in a different sub-tree than
VS2008 EE, so I think that your path should be OK...

Giovanni
Sep 19 '08 #4
Tan
I suppose the problem is solved, still dubious cause didn't check the full
functioning but one way or the other eliminated the library or dll(of course
with adding the #pragma comment(lib, "ws2_32.lib ") ) linking, from now it
can't be a big deal I think. Actually required libraries for OpenSSL were
slightly in the different folder :)

thnx in advance,

"Giovanni Dicanio" <gi************ ****@REMOVEMEgm ail.comwrote in message
news:O0******** ******@TK2MSFTN GP02.phx.gbl...
>
"Tan" <no****@hotmail .comha scritto nel messaggio
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
>>it made me think that something is malfunctioning in VC2008 EE due to the
fact it's a beta version.

VS2008 EE is no more in beta... instead, you can already download the SP1
(which I would suggest you to do).
>I'll play around a bit more to make sure that probelm is VC2008 EE
related.

I would suggest you to try to create a trivial Win32 applications and see
what happens...
Then, if that builds fine, you can add OpenSL files.
>lib's reside in <C:\Program Files\Microsoft SDKs\Windows\v6 .0A\Lib>
rather than <C:\Program Files\Microsoft Visual Studio 9.0\VC\lib>
location. Do you think that's normal ?

I think the Win32 Platform SDK is installed in a different sub-tree than
VS2008 EE, so I think that your path should be OK...

Giovanni

Sep 19 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2734
by: User1001 | last post by:
I have been trying to enable/use specific OpenSSL extensions that I use in generating certificates manually, via PHP5 + php5-openssl module/extension. Filling out the "configargs" array with 'x509_extensions' and/or 'req_extensions' fails to generate/sign a certificate with the desired X.509 extensions included in the signed certificate. The extensions in my "openssl.cnf" file work just fine with manual OpenSSL commands. Also, I am...
0
2027
by: al | last post by:
I am trying to compile mysql for windows with openssl support. I have: - Defined HAVE_OPENSSL and HAVE_VIO in client.c (in libmysql/d projects) and vio.c - linked the libmysql project to libeay32.lib ssleay32.lib - moved lib and dll files into the lib_release directory - included "openssl/ssl.h" in client.c and vio.c - added des_key_file.cpp to the mysqld project and get the errors below. Any suggestions?
2
5291
by: Christopher Murtagh | last post by:
Greetings, I'm trying to build 7.3.4 and I've come across two problems, one during the configure and the other afterward. Problem 1) Trying to build with openssl support gives this: ../configure --with-openssl --enable-odbc --with-perl --enable-multibyte
17
10050
by: cpptutor2000 | last post by:
Could some C guru please help me? I have a simple piece of code as: #include <stdio.h> #include <stdlib.h> #include <openssl/rand.h> int main(){ unsigned char temp; RAND_bytes(temp, 4);
1
15242
by: laredotornado | last post by:
Hello, I downloaded PHP 4.4.4 and am trying to install for Apache 2 on Fedora Core 5. However when trying to configure with openssl, I get this error, configure: error: Cannot find OpenSSL's <evp.h> That file is located in /usr/include/openssl/evp.h but when I put the directory in the configure option
4
6600
by: Patrick | last post by:
Hello, I'm currently trying the OpenSSL Library, but I got some problems. I want to create a server and client application that communicate through the OpenSSL API, but this code doesn't work. I tried to understand the error messages but for me they aren't useful. And now I'm here and hope that somebody has experience and can tell me the error. This is the Code for the server: #define _CRT_SECURE_NO_DEPRECATE
3
2062
by: =?Utf-8?B?amM=?= | last post by:
Hello, I am trying to install VC2008 SP1, but it requires 5GB on the "C:\" drive. I don't have 5GB available on the "C:\" drive, but I do have 1/2 TB available on the "D:\". How do I change the installation settings to install SP1 on the "D:\" drive? I installed VC2008 on the "D:\" drive.
3
7913
by: Marcin Jurczuk | last post by:
Hello, I'm fighting with Certificate Authority functionality with python I stuck on following problem: How to sign CSR using CA key and write resulted certificate. You can do it using following openssl cmd: openssl ca -cert CA/cert.pem -keyfile CA/private/cakey.pem -policy policy_anything -out user_cert.pem -infiles userreq.pem My try was:
2
2805
by: vipergt023 | last post by:
Hi, I have an VC2008 (C++) app that reads data from a VC6 app using CArchives over sockets using regular socket reads. On my local computer when I send the packets to 127.0.0.1, it reads it with no issues. On a blank "test" computer with .NET 3.5, VC++ redist, and both applications installed, the local (127.0.0.1) test doesn't work. The VC6 app simply cannot detect the open port of the VC2008 app. No error messages on the VC2008 app. Are...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10228
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.