Y
yossis
I have a .Net solution that contains multiple projects of both Managed
C++ and C#.
There are references in one Managed C++ project's classes to classes in
another Managed C++ project.
i.e. Proj2::Class2 uses Proj1::Class1
Proj2 has a reference entry for Proj1
Each projects uses its own namespace, so Proj2::Class2.cpp has a #using
namespace line referring to the namespace declared in the Proj1 classes
I cannot get this scenario to compile. I get:
"error C2512: 'Proj1::Class1' : no appropriate default constructor
available"
If I add #include "Class1.h" to Class2.cpp, then I alse get this:
"error C2011: 'ManagedCppProj1::Class1' : 'class' type
redefinition"
I have tried the same scenario in a dummy solution with 2 simple
Managed C++ projects and get the same results.
Both projects are mixed mode and reference common unmanaged static C++
libraries
Any ideas??
C++ and C#.
There are references in one Managed C++ project's classes to classes in
another Managed C++ project.
i.e. Proj2::Class2 uses Proj1::Class1
Proj2 has a reference entry for Proj1
Each projects uses its own namespace, so Proj2::Class2.cpp has a #using
namespace line referring to the namespace declared in the Proj1 classes
I cannot get this scenario to compile. I get:
"error C2512: 'Proj1::Class1' : no appropriate default constructor
available"
If I add #include "Class1.h" to Class2.cpp, then I alse get this:
"error C2011: 'ManagedCppProj1::Class1' : 'class' type
redefinition"
I have tried the same scenario in a dummy solution with 2 simple
Managed C++ projects and get the same results.
Both projects are mixed mode and reference common unmanaged static C++
libraries
Any ideas??