I am encountering an issue that seems identical to this one.
I have a VS 2008 solution that includes, among other things: (names changed for simplicity)
- DLL A: A native C++, business logic DLL
- DLL B: A C++/CLI wrapper for DLL A with a namespace of "Wrapper"
- EXE: A C# WinForms GUI EXE project that (references DLL B)
When I build the EXE, VS gives me an error:
error CS0246: The type or namespace name 'Wrapper' could not be found (are you missing a using directive or an assembly reference?)
However:
- There are no other errors or warnings reported
- All references in the EXE project seem to resolve properly
- DLL A and DLL B both build without errors or warnings
- DLL A includes both .h header and .cpp files (that simply include the .h header)
- I can traverse the 'Wrapper' namespace in the object browser without issues
The first linked question mentions something about a "duplicate definition of a compiler symbol", but I'm not sure what to look for in that sense.
Any ideas for what to try?