class type redefinition in Managed C++ .NET Assembly

G

Guest

When adding a "Managed Assembly" i.e., a dll to an existing C++/CLI program i
get the error:

LDAPfunctions.h(183) : error C2011: 'LDAPfunctions::LdapSsl' : 'class' type
redefinition

This is for the code:

namespace LDAPfunctions
{
public ref class LdapSsl // error link points here
{
***

Any idea what could be causing this?

The above namespace has included within its 'include' file some other class
definitions and C constructs that are not within the LDAPfunctions namespace.
Is there some rule against doing that?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top