DCC Error E2597 -> undefined reference to 'CopyFileW'

Issue #168 new
Former user created an issue

Hi,

I'm working on Rio 10.3 and have CrossVCL installed. Everything goes fine until I got the following error messages.

[DCC Error] E2597 C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.Windows.o:Winapi.Windows:function Winapi::Windows::CopyFile(char16_t, char16_t, int): error: undefined reference to 'CopyFileW' C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.Windows.o:Winapi.Windows:function Winapi::Windows::DeleteFile(char16_t): error: undefined reference to 'DeleteFileW' C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.Windows.o:Winapi.Windows:function Winapi::Windows::GetFileVersionInfo(char16_t, unsigned int, unsigned int, void): error: undefined reference to 'GetFileVersionInfoW' C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.Windows.o:Winapi.Windows:function Winapi::Windows::GetFileVersionInfoSize(char16_t, unsigned int&): error: undefined reference to 'GetFileVersionInfoSizeW' C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.Windows.o:Winapi.Windows:function Winapi::Windows::VerQueryValue(void, char16_t, void*&, unsigned int&): error: undefined reference to 'VerQueryValueW' C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.ShellAPI.o:Winapi.ShellAPI:function Winapi::Shellapi::SHFileOperation(_SHFILEOPSTRUCTW): error: undefined reference to 'SHFileOperationW'

My target is an Ubuntu 16.04.3 LTS Linux system.

Thanks

Best regards

Comments (5)

  1. Davis Montenegro

    Thanks Eugene,

    I've solved this error and the program compiles correctly, however, when I try to run the program on Ubuntu I got the following message:

    CrossVcl v 1.05 Exception EAccessViolation in module libcrossvcl.so at 00007FEC774C7F73 Access violation at address 00007FEC774C7F73, accessing address 00007FEC774C7F73. Runtime error 217 0000000000921E5F.

    Any idea on what may causing this?

    Thanks in advance

    Best regards

  2. Log in to comment