VLL
VLL

Reputation: 10165

Unresolved external Vcl::Filectrl::SelectDirectory

I am using Vcl::Filectrl::SelectDirectory() in C++ Builder 10.3.1 but I receive error:

[ilink32 Error] Error: Unresolved external '__fastcall Vcl::Filectrl::SelectDirectory(System::UnicodeString, System::WideString, System::UnicodeString&, System::Set<Vcl::Filectrl::TSelectDirExtOpt, 0, 5>, Vcl::Controls::TWinControl *)' referenced from

What library should I link to resolve the error?

Upvotes: 2

Views: 998

Answers (2)

Harri Luoma
Harri Luoma

Reputation: 51

Add the following line to your C++ file:

#pragma link "vclx.lib"

Upvotes: 3

VLL
VLL

Reputation: 10165

In C++ Builder 10.3.1, vclx.lib should be linked. Change the following line in the project file:

<AllPackageLibs>rtl.lib;vcl.lib;</AllPackageLibs>

to

<AllPackageLibs>rtl.lib;vcl.lib;vclx.lib</AllPackageLibs>

Upvotes: 4

Related Questions