Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Linker won't find .DLL when compiling for Linux 9 years 3 months ago #6563

  • Achim Fleischle
  • Achim Fleischle's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
const LibName = {$ifdef LINUX} 'K8055D.h' {$else} 'k8055fpb64.dll' {$endif} ;
...
{$ifdef LINUX}
// Board vorbereiten
function  SearchDevices: integer;                          cdecl; external LibName name 'SearchDevices';
function  SetCurrentDevice(CardAddress: integer): integer; cdecl; external LibName name 'SetCurrentDevice';    
...

Compiling with destination Linux-Arm generates

c:\codetyphon\fpc\fpc64\bin\x86_64-win64\arm-linux-ld.exe: cannot find -lK8055D.h
Error while linking


while compilation for Windows platforms works fine.

Do I have to register a path for DLL libraries somewhere/somehow? Why compiles the code for Windows just fine?

Anybody an idea?

Please Log in or Create an account to join the conversation.

Last edit: by Achim Fleischle.
  • Page:
  • 1