"Jack" <no_spam@_nospam.com> escribió en el mensaje
news:%23NkwiB%(E-Mail Removed)...
>> Error 2 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
>
> Sorry, the error should read:
>
> error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
> (?.cctor@@$$FYMXXZ) in ButtonEncryption.obj
>
>> This occurs several twice in fact (for this file) and once for
>> "stdafx.obj".
>
> Kill "several"
Demangling name (using undname utility) you have the following:
"void __clrcall cctor(void)"
In MSIL cctor is a special name for static ctors (type initializer).
Something like that
ref class Test
{
public:
static int foo;
// cctor (check this name with ILDasm)
static Test()
{
foo = 17;
}
};
For classes with static data, type initializers are optional: If you don't
provide it, the compiler always generates one with default init values.
In your code: if a class provide a declaration for cctor, check the
existence of its definition.
Regards
--
Cholo Lennon
Bs.As.
ARG
|