Managed Visual C++/CLI project, compiler error C2686

.NET obfuscator and automated error reporting

Managed Visual C++/CLI project, compiler error C2686

Postby wout » Tue Jan 22, 2013 3:49 pm

With some obfuscation settings, the C++/CLI compiler can run into error C2686:

error C2686: cannot overload static and non-static member functions with the same parameter types

Does happen with:

Code: Select all
            <Obfuscation FieldsNameMangling="2" NameMangling="3" />

Does not happen with:

Code: Select all
            <Obfuscation FieldsNameMangling="3" NameMangling="2" />

Also doesn't seem to happen with ascii renaming. Didn't try all settings.

I don't require any action, I'd just like to mention it so it's perhaps helpful to other users (and also myself in case I forget about it, then I can google to my own post).

- Wout
Posts: 4
Joined: Tue Jul 12, 2011 1:07 pm

Postby jessica.ramos » Wed Jan 23, 2013 11:47 pm

Hi Wout,

I found some older tickets regarding this error and it's true that using a lower level of obfuscation should help. Thank you for posting this! :)
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Posts: 542
Joined: Mon Apr 23, 2012 12:13 pm

Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests