Tat,
I had the same problem until I changed the include order of the header files to look
like this:
// 1. Include OpenSSL-stuff
extern "C"{
#include <openssl/...>
...
}
// 2. Include STL-stuff
#include <iostream>
#include <vector>
#include <algorithm>
...
// 3. Specify namespace
using namespace std;
Basically, you shouldn't include any of the OpenSSL-stuff after having specified the
namespace.
Hope this helps,
Steve W.
Tat Sing Kong wrote:
> Hello everybody,
>
> I've written some C++ stuff, and some wrappers for OpenSSL which compile
> fine on VC++ 6.0, however when I put them together the compiler is
> complaining because openSSL uses variable names like "modulus" and
> "list" which are also used by the STL stuff.
>
> Anyone know a way around this, I guess namespaces has something to do
> with it. I hope, I don't want to go around editing the STL or openSSL.
>
> Tat.
>
> ______________________________________________________________________
> 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]