Compiler Error C3846
'symbol' : cannot import symbol from 'assembly2': as 'symbol' has already been imported from another assembly 'assembly1'
A symbol could not be imported from a referenced assembly because it was previously imported from a referenced assembly.
Example
The following sample generates C3846:
// C3846a.cpp
// compile with: /LD /clr
public ref struct G
{
};
And then compile this:
// C3846b.cpp
// compile with: /clr
#using "c3846a.dll"
#using "c3846a.obj" // C3846
int main()
{
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for