Visual C++ error with RedGate.SQLCompare.Engine.Database
ajryan
Posts: 12
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 8.0.0.309.
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)'
Referencing RedGate.SQLCompare.Engine.dll version 8.0.0.309.
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)'
Comments
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.
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569