Ed,

To the best of my knowledge STL uses the namespace std. Have you tried explicitly 
referencing the STL templates using the namespace std::. For example, std::string, 
std::vector, etc.

Frank



                                                                                       
                                                   
                      Federico Sauter                                                  
                                                   
                      <[EMAIL PROTECTED]>           To:       [EMAIL PROTECTED]  
                                                   
                      Sent by:                    cc:                                  
                                                   
                      owner-openssl-users@        Subject:  Re: Compilation problem 
using OpenSSL with STL                                
                      openssl.org                                                      
                                                   
                                                                                       
                                                   
                                                                                       
                                                   
                      07/26/2002 12:09 PM                                              
                                                   
                      Please respond to                                                
                                                   
                      openssl-users                                                    
                                                   
                                                                                       
                                                   
                                                                                       
                                                   





Hi Ed!

There must be something wrong, since I am working with C++ also, using
the STL and implementing templates on my own and have never got any of
those errors. In the constructor of one of my classes I even use a
STACK_OF() my own without any kind of trouble...

Have you (succesfully) compiled OpenSSL before using it with the STL?
Please send more information about your configuration and when the
problem started and perhaps I can help you further...


Sincerely,

_____________________________________________________________
Federico Sauter                     [EMAIL PROTECTED]
Software Entwicklung                Tel: +49 89 7465 4778
TESIS Sysware GmbH                  Fax: +49 89 7465 4788
Implerstraße 26 * D-81371 München * Deutschland


Edward Chan wrote:

> Hi there,
>
> I'm new to OpenSSL and was trying to incorporate it
> into our C++ program that uses STL.  What I've found
> was that I get a couple compile errors because
> variable names conflict with STL structures.
>
> In ssl.h, the following function declarations have an
> argument named 'list' which conflicts with the STL
> template class by the same name.
>
> void SSL_set_client_CA_list(SSL *s,
> STACK_OF(X509_NAME) *list);
> void SSL_CTX_set_client_CA_list(SSL_CTX *ctx,
> STACK_OF(X509_NAME) *list);
>
> Also, in bn.h the following function delcaration has
> an argument named 'modulus' which conflicts with the
> STL template class by the same name.
>
> int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM
> *modulus,BN_CTX *ctx);
>
> To get around the compile errors, I just renamed the
> arguments to 'l' and 'mod' respectively.  But I was
> wondering if I'm doing something wrong since I would
> have expected others to have run into the same
> problem.
>
> Am I doing something wrong?
>
> Thanks,
> Ed
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to