Page 1 of 1

TScIdIOHandler link errors

Posted: Tue 01 Sep 2015 21:44
by roddyp
I'm getting these errors while using SecureBridge demo with C++Builder 2010, using TScIdIOHandler. I use Indy 10, but it's been upgraded to 10.6.0.0

Code: Select all

[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::PerformCapture(System::TObject *, int&, const System::UnicodeString, bool, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::Write(const System::UnicodeString, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::WriteLn(const System::UnicodeString, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::WriteLnRFC(const System::UnicodeString, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::Write(Classes::TStrings *, bool, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::AllData(Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::InputLn(const System::UnicodeString, bool, int, int, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::ReadLn(System::UnicodeString, int, int, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
[ILINK32 Error] Error: Unresolved external '__fastcall Idiohandler::TIdIOHandler::ReadLnWait(int, Sysutils::TEncoding *)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\INDY10SBRIDGE140.LIB|ScIndy
I guess I need a different version of TScIdIOHandler - how to get and install?

Re: TScIdIOHandler link errors

Posted: Thu 03 Sep 2015 08:41
by roddyp
Resolved: The source for SCIndy.pas is provided (but well hidden) in the "Demos/Indy10" directory. I was able to recompile this for my particular Indy version, and link with that.

Based on previous experience, I wasn't expecting to find source code for anything included with the trial version.

Re: TScIdIOHandler link errors

Posted: Thu 03 Sep 2015 09:21
by ViktorV
To solve the issue, please try to follow the steps:
- remove indy10sbridge140 package;
- create and install a new package for C++ Builder.
You can create a new package on your own by choosing Package from the File -> New menu. Add the ScIndy and ScIndyReg units to this project via the Project->Add to Project->Add Unit menu. Also add the following packages to the project (via Project->Add to Project->Requires menu): sbridge140.bpi, IndyCore140.bpi. After this compile and install the package.