Linker error for compiler-generated functions in package class in BPL

82 Views Asked by At

I'm trying to move our projects from the Classic compiler to the Clang compiler.

When linking a package .bpl file, it complains about missing constructors, destructors, and assignment operators. These are all cases where the specific function was not declared and is implicitly generated by the compiler when needed.

One of the errors is:

[Linker Error] Error: Unresolved external 'MplusPostgres::PgParams::~PgParams()' referenced from C:...\DEBUG_BUILD\PGUTIL.OBJ

The destructor mentioned ~PgParams has not been declared in the PgParams class.

I can solve it by explicitly implementing the missing functions, but to do that for all classes in all the packages would be a significant amount of work, even when using the default keyword.

Is there another way that is less work to make these errors go away?

0

There are 0 best solutions below