Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Unresolved reference in converting C++ bldr 2010 to Tokyo 10.2


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Sep 24, 2017 5:09 AM Last Post By: charles leggette
charles leggette

Posts: 45
Registered: 7/17/00
Unresolved reference in converting C++ bldr 2010 to Tokyo 10.2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 23, 2017 6:42 AM
I have only 1 remaining unresolved external reference...a reference to Make Directory(...) which is defined in the "C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32 library....but which the linker can't resolve....I include a reference to the namespace as follows

using namespace Iw_Common_System;

and the code is:
if (!Sysutils::DirectoryExists(User()->Rtp.reportPath))
{
Iw_Common_System::MakeDirectory(User()->Rtp.reportPath, false);
}

Any ideas?

ilink32 command line
c:\program files (x86)\embarcadero\studio\19.0\bin\ilink32.exe -G8 -LDebug;"c:\program files (x86)\embarcadero\studio\19.0\lib\debug";
"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"c:\program files (x86)\embarcadero\studio\19.0\lib";"C:\Program Files
(x86)\CGComponents\IWCGJQComps\Source";..\..\Src;..\..\spyder;"c:\program files (x86)\embarcadero\studio\19.0\lib\obj";C:\Borland;C:\Libxl\libembarc;
"c:\program files (x86)\embarcadero\studio\19.0\lib\win32\release";"c:\program files (x86)\embarcadero\studio\19.0\lib\win32\release\psdk";
C:\Libxl\lib;"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"C:\Program Files (x86)\CGDevTools\RS25\lib\win32\release";"C:\Program Files
(x86)\Devart\VirtualDAC for RAD Studio 10.2\Lib\Win32";C:\Users\Public\Documents\Embarcadero\Studio\19.0\DCP -jDebug;"c:\program files
(x86)\embarcadero\studio\19.0\lib\debug";"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"c:\program files
(x86)\embarcadero\studio\19.0\lib";"C:\Program Files (x86)\CGComponents\IWCGJQComps\Source";..\..\Src;..\..\spyder;"c:\program files
(x86)\embarcadero\studio\19.0\lib\obj";C:\Borland;C:\Libxl\libembarc;"c:\program files (x86)\embarcadero\studio\19.0\lib\win32\release";"c:\program
files (x86)\embarcadero\studio\19.0\lib\win32\release\psdk";C:\Libxl\lib;"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"C:\Program Files
(x86)\CGDevTools\RS25\lib\win32\release";"C:\Program Files (x86)\Devart\VirtualDAC for RAD Studio 10.2\Lib\Win32";
C:\Users\Public\Documents\Embarcadero\Studio\19.0\DCP -lDebug -v -t -aa -S:0x00400000 -Sc:0x00004000 -V5.0 -Tpe c0w32 memmgr.lib sysinit.obj
Debug\CashBalance.obj Debug\AutoPopulateDataForm.obj Debug\ClassDeferralAssumptionsUnit.obj Debug\CopyPlanUnit.obj
Debug\DeferralMatchRuntimeParametersUnit.obj Debug\EditEmployeeDataUnit.obj Debug\FeeAndTitlePage.obj Debug\FileDownloadUnit.obj Debug\Landing.obj
Debug\LoginUnit.obj Debug\LostPasswordSecurityVerificationUnit.obj Debug\MainPageUnit.obj Debug\MatchAnalysisGraphUnit.obj
Debug\MortalityLoadUnit.obj Debug\MultiPlanSelectionUnit.obj Debug\OptimizerUnit.obj Debug\ProfileEditUnit.obj Debug\RegisterPasswordUnit.obj
Debug\ServerController.obj Debug\ShowDocumentsUnit.obj Debug\ToolsFormUnit.obj Debug\UserSessionUnit.obj Debug\VerInfo.obj Debug\YesNoUnit.obj
Debug\CashBalanceSubs.obj Debug\common.obj Debug\Eligible.obj Debug\fakeNameGeneratorClass.obj Debug\lim.obj Debug\PensionFormulaClass.obj
Debug\retire.obj Debug\Runtime.obj Debug\studyClass.obj Debug\xls_com.obj Debug\cookies.obj Debug\IWRtlFix.obj , Debug\CashBalance.exe ,
Debug\CashBalance.map , rtl.lib vcl.lib Intraweb_14_D10_2.lib vclimg.lib inet.lib dbrtl.lib vcldb.lib vclx.lib Intraweb_14_D10_2.lib
IWCGJQComps_140_250.lib vclie.lib inetdb.lib xmlrtl.lib dsnapcon.lib dsnap.lib IndyCore.lib IndySystem.lib IndyProtocols.lib IWCGJQCore_140_250.lib
Intraweb_14_D10_2.lib IWCGJQComps_140_250.lib IWCGJQCore_140_250.lib dac250.lib adortl.lib Amslib.lib libxl.lib Intraweb_14_D10_2.lib import32.lib
cp32mt.lib , , CashBalance.res CashBalance.res

[ilink32 Error] Error: Unresolved external '__fastcall Iw_Common_System::MakeDirectory(System::UnicodeString, bool)' referenced from C:\CPP\PROJECTS\CASHBALANCE\DEBUG\LOGINUNIT.OBJ
[ilink32 Error] Error: Unable to perform link
Failed

charles leggette

Posts: 45
Registered: 7/17/00
Re: Unresolved reference in converting C++ bldr 2010 to Tokyo 10.2  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2017 5:09 AM   in response to: charles leggette in response to: charles leggette
charles leggette wrote:
I have only 1 remaining unresolved external reference...a reference to Make Directory(...) which is defined in the "C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32 library....but which the linker can't resolve....I include a reference to the namespace as follows

using namespace Iw_Common_System;

and the code is:
if (!Sysutils::DirectoryExists(User()->Rtp.reportPath))
{
Iw_Common_System::MakeDirectory(User()->Rtp.reportPath, false);
}

Any ideas?

ilink32 command line
c:\program files (x86)\embarcadero\studio\19.0\bin\ilink32.exe -G8 -LDebug;"c:\program files (x86)\embarcadero\studio\19.0\lib\debug";
"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"c:\program files (x86)\embarcadero\studio\19.0\lib";"C:\Program Files
(x86)\CGComponents\IWCGJQComps\Source";..\..\Src;..\..\spyder;"c:\program files (x86)\embarcadero\studio\19.0\lib\obj";C:\Borland;C:\Libxl\libembarc;
"c:\program files (x86)\embarcadero\studio\19.0\lib\win32\release";"c:\program files (x86)\embarcadero\studio\19.0\lib\win32\release\psdk";
C:\Libxl\lib;"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"C:\Program Files (x86)\CGDevTools\RS25\lib\win32\release";"C:\Program Files
(x86)\Devart\VirtualDAC for RAD Studio 10.2\Lib\Win32";C:\Users\Public\Documents\Embarcadero\Studio\19.0\DCP -jDebug;"c:\program files
(x86)\embarcadero\studio\19.0\lib\debug";"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"c:\program files
(x86)\embarcadero\studio\19.0\lib";"C:\Program Files (x86)\CGComponents\IWCGJQComps\Source";..\..\Src;..\..\spyder;"c:\program files
(x86)\embarcadero\studio\19.0\lib\obj";C:\Borland;C:\Libxl\libembarc;"c:\program files (x86)\embarcadero\studio\19.0\lib\win32\release";"c:\program
files (x86)\embarcadero\studio\19.0\lib\win32\release\psdk";C:\Libxl\lib;"C:\Users\cwyatt\AppData\Roaming\IntraWeb XIV\LibD10_2W32";"C:\Program Files
(x86)\CGDevTools\RS25\lib\win32\release";"C:\Program Files (x86)\Devart\VirtualDAC for RAD Studio 10.2\Lib\Win32";
C:\Users\Public\Documents\Embarcadero\Studio\19.0\DCP -lDebug -v -t -aa -S:0x00400000 -Sc:0x00004000 -V5.0 -Tpe c0w32 memmgr.lib sysinit.obj
Debug\CashBalance.obj Debug\AutoPopulateDataForm.obj Debug\ClassDeferralAssumptionsUnit.obj Debug\CopyPlanUnit.obj
Debug\DeferralMatchRuntimeParametersUnit.obj Debug\EditEmployeeDataUnit.obj Debug\FeeAndTitlePage.obj Debug\FileDownloadUnit.obj Debug\Landing.obj
Debug\LoginUnit.obj Debug\LostPasswordSecurityVerificationUnit.obj Debug\MainPageUnit.obj Debug\MatchAnalysisGraphUnit.obj
Debug\MortalityLoadUnit.obj Debug\MultiPlanSelectionUnit.obj Debug\OptimizerUnit.obj Debug\ProfileEditUnit.obj Debug\RegisterPasswordUnit.obj
Debug\ServerController.obj Debug\ShowDocumentsUnit.obj Debug\ToolsFormUnit.obj Debug\UserSessionUnit.obj Debug\VerInfo.obj Debug\YesNoUnit.obj
Debug\CashBalanceSubs.obj Debug\common.obj Debug\Eligible.obj Debug\fakeNameGeneratorClass.obj Debug\lim.obj Debug\PensionFormulaClass.obj
Debug\retire.obj Debug\Runtime.obj Debug\studyClass.obj Debug\xls_com.obj Debug\cookies.obj Debug\IWRtlFix.obj , Debug\CashBalance.exe ,
Debug\CashBalance.map , rtl.lib vcl.lib Intraweb_14_D10_2.lib vclimg.lib inet.lib dbrtl.lib vcldb.lib vclx.lib Intraweb_14_D10_2.lib
IWCGJQComps_140_250.lib vclie.lib inetdb.lib xmlrtl.lib dsnapcon.lib dsnap.lib IndyCore.lib IndySystem.lib IndyProtocols.lib IWCGJQCore_140_250.lib
Intraweb_14_D10_2.lib IWCGJQComps_140_250.lib IWCGJQCore_140_250.lib dac250.lib adortl.lib Amslib.lib libxl.lib Intraweb_14_D10_2.lib import32.lib
cp32mt.lib , , CashBalance.res CashBalance.res

[ilink32 Error] Error: Unresolved external '__fastcall Iw_Common_System::MakeDirectory(System::UnicodeString, bool)' referenced from C:\CPP\PROJECTS\CASHBALANCE\DEBUG\LOGINUNIT.OBJ
[ilink32 Error] Error: Unable to perform link
Failed

Change MakeDirectory(...,...) call to Sysutils::CreateDir(string)...all is good now.

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02