470 occurrences of Warning C4945

humantargetjoe

07-06-2006 15:29:16

Description of this warning from Help:

Error Message
'symbol' : cannot import symbol from 'assembly2': as 'symbol' has already been imported from another assembly 'assembly1'

A symbol was imported from a referenced assembly but that symbol was already imported from another referenced assembly. Either do not reference one of the assemblies or get the symbol name changed in one of the assemblies.


I'm using MS VC++ 8 Express. Got everything installed, added the references to the 4 .NET libraries (OgreDotNet, CeguiDotNet, Math3D, and OgreDotNet.Cegui), I'm using the pre-built .dll available from the stickied thread, and have

#using "OgreDotNet.dll"

on the first line of an applicatin that has an INT WinMain entry point that just returns 0;

As an example, it refers to some of these functions: OgreDotNet::KeyFrame, OgreDotNet::VertexMorphKeyFrame, OgreDotNet::TransformKeyFrame.

I'm unsure why it's generating all of these warnings, or even if they're important. I didn't find anything about it in the Wiki or on the forums and thought someone might be able to elaborate on whether or not this is an actual issue.

rastaman

07-06-2006 16:27:27

Well I'm not totally sure but I think you would use ONE of the 2 options (add the references to the dlls, or use the "#using" directive), not both. That is why you get the warnings.

humantargetjoe

07-06-2006 16:33:13

Well I'm not totally sure but I think you would use ONE of the 2 options (add the references to the dlls, or use the "#using" directive), not both. That is why you get the warnings.

I had no idea that the References also implicitly added the #using, I had only known it would take care of the library pathing and the dll's manifests.

Thanks!