Hi Charles,

I was facing the same problem here. I did now quite get where to add the
'includes' code part in.

Can you suggest me more detailed steps to take?

I'm using nmake.exe and .mak to build from the visual studio command prompt
(2010).

Thank you.

Eirene

Charles Mills wrote
> The following compiles without error in MS VS 2010 C++. Yes, I know 
> <string>
> is in there twice: no reason, it just is.
> 
> #include "targetver.h"
> 
> // Watch out! winsock2 and friends has to be ahead of most things
> #include "Ws2tcpip.h"
> // Ws2tcpip always needs Ws2_32.lib. You can put it here or in the linker
> input
> #pragma comment (lib, "Ws2_32.lib")
> #include 
> <Mswsock.h>
> #include 
> <stdio.h>
> #include 
> <tchar.h>
> #include 
> <string>
> #include 
> <iostream>
> #include 
> <fstream>
> #include 
> <list>
> #include 
> <process.h>
>     /* _beginthread, _endthread */
> #include 
> <conio.h>
> #include 
> <Windows.h>
> // #include "Shlwapi.h" for PathRemoveFileSpec; requires Shlwapi.lib
> #include "Shlwapi.h"
> #pragma comment (lib, "Shlwapi.lib")
> 
> #include 
> <string>
> // SSL
> #include "openssl\ssl.h"
> #include "openssl\crypto.h"
> #include "openssl\err.h"
> #include "openssl\rand.h"
> #include "openssl\x509v3.h"
> 
> targetver.h is #include 
> <SDKDDKVer.h>
>  which is too long to paste here and
> hopefully not the active ingredient. Probably VS version dependent anyway.
> 
> Charles





--
View this message in context: 
http://openssl.6102.n7.nabble.com/error-iin-x509v3-h-compiled-with-visual-studio-tp9675p50818.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to