Recent

Author Topic: How to call Library on Linux? - Como chamar Blibioteca (.so) no Linux?  (Read 2742 times)

elt0n

  • Newbie
  • Posts: 1
Olá,
criei um programa no Windows e agora estou migrando para o Linux, só que há um problema, no Windows usei uma .dll e como migrei pro Linux compilei nele pra gerar um .so mas não sei como carrega-la.

exemplo

Code: [Select]
function exemplo (variável: tipo): tipo; external 'nome_biblioteca';
não dá erro e compila  mas também não executa.

Há alguma diferença nesse sentido entre o Windows e o Linux?

Quote
Hello,
I wrote a program in Windows and now I am migrating to Linux, just that there is a problem, in the Windows used a .dll and how I migrated to Linux compiled on it to generate a .so but don't know how to load it.

example

Code: [Select]
function exemplo (variável: tipo): tipo; external 'name_library';
It gives error and compiles but does not run.

Is there any difference in this respect between Windows and Linux?
« Last Edit: February 04, 2015, 09:33:13 pm by elt0n »

Fred vS

  • Hero Member
  • *****
  • Posts: 3919
    • StrumPract is the musicians best friend
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018