473,473 Members | 4,208 Online
Bytes | Software Development & Data Engineering Community
Create 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.shininglightpro.com/products/
Win32OpenSSL.html 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(ssleay32MT.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
GetDesktopWindow, MessageBoxA etc) don't think they are related with
OpenSSL..

1>libeay32MT.lib(bss_sock.obj) : error LNK2001: unresolved external symbol
_closesocket@4
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
mp__GetUserObjectInformationW@20
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
_imp__GetProcessWindowStation@0
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__GetDesktopWindow@0
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__MessageBoxA@16
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__DeregisterEventSource@4
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__ReportEventA@36
1>libeay32MT.lib(cryptlib.obj) : error LNK2001: unresolved external symbol
__imp__RegisterEventSourceA@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 4865

"Tan" <no****@hotmail.comha scritto nel messaggio
news:OR**************@TK2MSFTNGP04.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
GetDesktopWindow, MessageBoxA etc) don't think they are related with
OpenSSL..
Functions like GetDesktopWindow() 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\liblocation. Do you think that's
normal ?

thnx in advance,

"Giovanni Dicanio" <gi****************@REMOVEMEgmail.comwrote in message
news:Og**************@TK2MSFTNGP05.phx.gbl...
>
"Tan" <no****@hotmail.comha scritto nel messaggio
news:OR**************@TK2MSFTNGP04.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
GetDesktopWindow, MessageBoxA etc) don't think they are related with
OpenSSL..

Functions like GetDesktopWindow() 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****************@TK2MSFTNGP02.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\liblocation. 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****************@REMOVEMEgmail.comwrote in message
news:O0**************@TK2MSFTNGP02.phx.gbl...
>
"Tan" <no****@hotmail.comha scritto nel messaggio
news:%2****************@TK2MSFTNGP02.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
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...
0
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...
2
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: ...
17
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
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...
4
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...
3
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...
3
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...
2
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
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...

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.