Visual C++ error with RedGate.SQLCompare.Engine.Database

Automate and integrate using the SQL comparison API

Visual C++ error with RedGate.SQLCompare.Engine.Database

Postby ajryan » Thu Aug 27, 2009 5:41 pm

When compiling a managed Visual C++/CLI project, compiler error C2686 is reported whenever the Database class is used. This appears to be caused by an obfuscation tool that is not aware of C++ method overloading. I believe this was an issue in the version 6 API as well.

Referencing RedGate.SQLCompare.Engine.dll version

Full error text:
error C2686: cannot overload static and non-static member functions with the same parameter types
1> <path>\\redgate.sqlcompare.engine.dll: could be 'System::Random ^RedGate::SQLCompare::Engine::Database::a(void)'
1> <path>\\redgate.sqlcompare.engine.dll: or 'RedGate::Shared::Utils::IO::TemporaryFileManager ^RedGate::SQLCompare::Engine::Database::a(void)'
Posts: 9
Joined: Tue Feb 26, 2008 7:03 pm

Postby peter.peart » Mon Aug 31, 2009 1:50 pm

Hi Aidan,

Many thanks for your forum post.

I believe that we are dealing with this forum post in a support ticket for you, please let me know if there is anything else regarding this separate to the support ticket that would help.
Peter Peart
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
Site Admin
Posts: 362
Joined: Tue Sep 02, 2008 8:58 am
Location: Top floor, RG towers with the cool kids

Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest