Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Building C++Builder Tokyo 10.2 standalone 64bit executable on Windows fails



Permlink Replies: 1 - Last Post: Feb 16, 2018 5:47 AM Last Post By: Orlianky Alcalde
Daniel Zvinca

Posts: 2
Registered: 4/5/09
Building C++Builder Tokyo 10.2 standalone 64bit executable on Windows fails
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 7, 2018 5:06 AM
I am trying to build a standalone 64bit executable for Windows. C++Builder Tokyo. The following options are settled FALSE:

1. Link with Dynamic RTL
2. Link with the Delphi Runtime Library (rtl and cp32mt...)
3. Link with runtime packages

I have several 64bit static libraries (*.a) successfully compiled and added to be linked to this project.
All of them are compiled with

1. Link with Dynamic RTL = FALSE

When I am trying to build the exe putting all of them together, they appear many errors related to missing standard library functions like the following (*from* is not only one, but many of the added .a libraries)

[ilink64 Error] Error: Unresolved external 'std::locale::id::id(unsigned long long)' referenced from ...
[ilink64 Error] Error: Unresolved external 'std::ios_base::ios_base()' referenced from ...
[ilink64 Error] Error: Unresolved external 'std::locale::locale()' referenced from ...
[ilink64 Error] Error: Unresolved external 'std::_Lockit::_Lockit(int)' referenced from ...
...

As soon as I manually add cp64mt.a and cp64mti.a, the project successfully links and the only external dependency seems to be cc64250mt.dll. Situation happens with 10.2, 10.2.1, 10.2.2.

Is it any other a library which manually added would solve the issue? Are they any other settings that I missed?

Thanks,
Dan
Orlianky Alcalde

Posts: 2
Registered: 3/14/18
Re: Building C++Builder Tokyo 10.2 standalone 64bit executable on Windows fails
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2018 5:47 AM   in response to: Daniel Zvinca in response to: Daniel Zvinca
Daniel Zvinca wrote:
I am trying to build a standalone 64bit executable for Windows. C++Builder Tokyo. The following options are settled FALSE:

1. Link with Dynamic RTL
2. Link with the Delphi Runtime Library (rtl and cp32mt...)
3. Link with runtime packages

I have several 64bit static libraries (*.a) successfully compiled and added to be linked to this project.
All of them are compiled with

1. Link with Dynamic RTL = FALSE

When I am trying to build the exe putting all of them together, they appear many errors related to missing standard library functions like the following (*from* is not only one, but many of the added .a libraries)

[ilink64 Error] Error: Unresolved external 'std::locale::id::id(unsigned long long)' referenced from ...
[ilink64 Error] Error: Unresolved external 'std::ios_base::ios_base()' referenced from ...
[ilink64 Error] Error: Unresolved external 'std::locale::locale()' referenced from ...
[ilink64 Error] Error: Unresolved external 'std::_Lockit::_Lockit(int)' referenced from ...
...

As soon as I manually add cp64mt.a and cp64mti.a, the project successfully links and the only external dependency seems to be cc64250mt.dll. Situation happens with 10.2, 10.2.1, 10.2.2.

Is it any other a library which manually added would solve the issue? Are they any other settings that I missed?

Thanks,
Dan

Hi! I´m in a similar situation with CBuilder XE5: when I choose compiling for 64bits the help system doesn´t work on my application. On the other hand if I include all the .bpls needed and link with runtime libraries works fine. This just happpen on 64 bits, 32 bits works fine anyway.
PD: I need my target file extension to be 5 characters long "*.wfx64" as I´m writing a Total Commander plugins that needs ending in theese 5 characters but when I type "wfx64" in Target file extension option it takes ".dll" appended to my choosen one like this "mypluging.wfx64.dll" so the actual extension is ".dll". I can rename it, no problem about it but I can´t debug it like this.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02