Red Gate forums :: View topic - Managed Visual C++/CLI project, compiler error C2686
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

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

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
wout



Joined: 12 Jul 2011
Posts: 4

PostPosted: Tue Jan 22, 2013 4:49 pm    Post subject: Managed Visual C++/CLI project, compiler error C2686 Reply with quote

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:
            <Obfuscation FieldsNameMangling="2" NameMangling="3" />

Does not happen with:

Code:
            <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
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 184

PostPosted: Thu Jan 24, 2013 12:47 am    Post subject: Reply with quote

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! Smile
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group