C++ Builder 10 - Compiling any project gives error?

2.4k Views Asked by At

I just installed C++ Builder 10 (Seattle) trial but now facing a strange error when trying to compile any (new or existing) VCL Forms application.

enter image description here

It's a clean installation, no settings were modified etc. I'm using Windows 10. How to solve this?

3

There are 3 best solutions below

0
David On BEST ANSWER

This is bug RSP 11768, which I suspect will be fixed in Update 1. See also this forum thread.

There are a number of solutions in that bug report:

  • Add borlndmm.dll to the delay-loaded list; the method in question is never called, so the fact it isn't found doesn't cause a runtime error
  • Using impdef, create a new import library for the memory manager (borlndmm.dll / memmgr.def, and remove two exports (__dbk_fcall_wrapper and dbkFCallWrapperAddr; see the bug for details)
  • Replace memmgr.lib with the version from XE8
0
Tracer On

I think I found a solution.

  1. Go to Project/Options...
  2. Click on "C++ Compiler" and find "Use 'classic' Borland Compiler"
  3. Disable it

In existing projects built in previous versions of C++ Builder this may cause the following linker errors:

Unresolved external '___seh_personality_v0' Unresolved external '__Unwind_SjLj_Register' Unresolved external '___cxa_begin_catch'
Unresolved external '___cxa_rethrow' Unresolved external '___cxa_end_catch' Unresolved external '__Unwind_SjLj_Unregister'
Unresolved external '__Unwind_Resume' Unresolved external '___cpp_terminate'

To remove those errors go to

  1. Project/Options...
  2. C++ (Shared Options) / Library Path
  3. Remove '$(BDS)\lib\win32\release\'
0
Herwig On

This happened to me when I installed an older version of RAD Studio after a newer version was already installed. In my case I installed XE2 after XE10 was already installed.

In my Windows PATH the directories of the newer version (XE10)

e.g.: C:\Program Files (x86)\Embarcadero\Studio\17.0\bin

were listed after the directories of the older version (XE2)

e.g.: C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin

therefore an old version of borlndmm.dll was found instead of the actual one.

So I just moved the newer PATH records in front of the newer ones, restarted RAD Studio and everything was fine. I mean,... as it was before.