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

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

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

Postby wout » Tue Jan 22, 2013 4: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
wout
 
Posts: 4
Joined: Tue Jul 12, 2011 2:07 pm

Postby jessica.ramos » Thu Jan 24, 2013 12:47 am

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.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests