Jump to content
Sign in to follow this  
Navadvipa Chandra das

[ilink32 Error] Error: Unresolved external '___unnamed_5'

Recommended Posts

Hello, All!
There was a fully functional library for C++Builder 6. I started translating it to C++Builder 10.4.2. I divided it into two packages - one for FMX, the other for VCL. The VCL_NizhnyayaNavadvipa package is successfully compiled, but not successfully linked. And I can't figure out where the error is, because the linker gives the generated names - '___unnamed_4' and '___unnamed_5' !

https://github.com/Navadvipa-Chandra-das/NizhnyayaNavadvipa

here's what he writes
[ilink32 Error] Error: Unresolved external '___unnamed_4' referenced from C:\C\NIZHNYAYANAVADVIPA\WIN32\DEBUG\CWDTREE.OBJ
[ilink32 Error] Error: Unresolved external '___unnamed_5' referenced from C:\C\NIZHNYAYANAVADVIPA\WIN32\DEBUG\CWDTREE.OBJ
[ilink32 Error] Error: Unable to perform link

Where is the problem? How to find it? Can anyone help?
Thank You!
With best regards, Navadvipa Chandra das.

Share this post


Link to post

Hello, All!

But an even bigger miracle is that when I moved the entire

void __fastcall TCWDBTreeView::Notification(TComponent *AComponent, TOperation Operation)

method entirely to the end of the file cwdtree.cpp , then the linking problem has disappeared! Hurray!
It turns out that the order of the methods in the cpp file matters!

Thank You!
With best regards, Navadvipa Chandra das.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×