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 (6)

  1. Eugene Kryukov repo owner

    CrossVcl implements only UI related stuff, to be able launch your app have to use cross-platform RTL function for non-UI stuff.

  2. 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

  3. Eugene Kryukov repo owner

    It is hard to say by such report, can you send us sample code which causes this ?

  4. Davis Montenegro

    Hi Eugene,

    I've updated CrossVCL to version 1.09, however, this issue persist. I’ve put together an example so you can reproduce this issue at your side, how can I send you this example?

    Best regards

    Davis

  5. Log in to comment