user19840093
user19840093

Reputation: 1

Duplicate symbol __guard_check_icall_fptr and __guard_dispatch_icall_fptr in libmingwex.a and LIBCMT.lib linking C++Builder project

I hit a linker error in C++Builder project (12.2) that uses openssl and modern 64bit compiler.

Project files compile without errors but hit the following linker errors:

ld.lld: error: duplicate symbol: __guard_check_icall_fptr
defined at libmingwex.a(lib64_libmingwex_a-mingw_cfguard_support.o)
defined at LIBCMT.lib(guard_support.obj)

ld.lld: error: duplicate symbol: __guard_dispatch_icall_fptr
defined at libmingwex.a(lib64_libmingwex_a-mingw_cfguard_support.o)
defined at LIBCMT.lib(guard_support.obj)

Openssl used was compiled with VC x64.

The same project with legacy 32bit and 64bit compiles/links clean.

Any hints as to what to disable/set in either C++Builder project or building of openssl to resolve the duplicate symbol error?

Upvotes: 0

Views: 17

Answers (0)

Related Questions