Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
External dll/so
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Garbled web page content ...
by
PeterHu
[
Today
at 05:16:53 am]
SQLite query to Lazarus
by
PierceNg
[
Today
at 03:22:04 am]
[Solved]Retrieving wrong ...
by
PeterHu
[
Today
at 03:19:47 am]
I read this somewhere... ...
by
1HuntnMan
[
Today
at 12:06:28 am]
Fast Canvas Library V1.05...
by
RAW
[July 11, 2025, 11:49:38 pm]
ChatGPT and ObjectPascal ...
by
Fred vS
[July 11, 2025, 09:46:05 pm]
TCustomApplication.DoRun
by
cdbc
[July 11, 2025, 09:31:55 pm]
Searching for current wor...
by
fiscraliger
[July 11, 2025, 09:05:52 pm]
Compare two text lines an...
by
avk
[July 11, 2025, 08:28:04 pm]
Forte Report CE Questions
by
PascalProg
[July 11, 2025, 08:26:14 pm]
Rainbowed Rotating Square...
by
Lulu
[July 11, 2025, 07:22:49 pm]
Fpcupdeluxe
by
Okoba
[July 11, 2025, 06:07:25 pm]
Setting up an ARM embedde...
by
Ruptor
[July 11, 2025, 05:46:01 pm]
controls.lpr(731,15) Erro...
by
Bandy
[July 11, 2025, 05:26:37 pm]
Pascal Conference 2025
by
Jorg3000
[July 11, 2025, 04:17:06 pm]
problem by export and imp...
by
paule32
[July 11, 2025, 04:04:56 pm]
Message
by
Alexandr R
[July 11, 2025, 03:31:31 pm]
Squiggly Filled Trouchet ...
by
Boleeman
[July 11, 2025, 03:07:30 pm]
About Skia graphics engin...
by
loaded
[July 11, 2025, 02:09:30 pm]
My DIY dynamic array occu...
by
Thaddy
[July 11, 2025, 01:57:05 pm]
Math Book for Computer Fa...
by
Thaddy
[July 11, 2025, 12:22:25 pm]
Cirumvent the assignment ...
by
Thaddy
[July 11, 2025, 11:00:20 am]
internal Compiler Error
by
ALLIGATOR
[July 11, 2025, 10:30:07 am]
Debugger regression in La...
by
Martin_fr
[July 11, 2025, 09:46:44 am]
Has anyone installed TeeB...
by
wp
[July 10, 2025, 10:43:30 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: External dll/so (Read 10887 times)
notebook
New Member
Posts: 21
External dll/so
«
on:
August 03, 2011, 07:59:21 am »
How I can add dll/so to main project as reference?
in visual studio you cad add dll as reference, Can I do this in lazarus?
How I can load dll/so dynamically in main project?
Logged
jixian.yang
Full Member
Posts: 173
Re: External dll/so
«
Reply #1 on:
August 03, 2011, 10:57:09 am »
In Lazarus, we can put {$MODE DELPHI} in the unit which calls the dlls, then it is the same way as in Delphi.
The demo projects for Delphi is quite easy to Google.
«
Last Edit: August 03, 2011, 11:29:00 am by jixian.yang
»
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: External dll/so
«
Reply #2 on:
August 03, 2011, 11:09:50 am »
In Lazarus you don't need to add a reference to the library in the project itself, you simply add code which binds to the library.
Here is documentation about how to dynamically load a dynamic library:
http://wiki.lazarus.freepascal.org/Lazarus/FPC_Libraries#Loadlibrary_-_loading_a_dynamic_library
And about how to statically load a dynamic library:
http://wiki.lazarus.freepascal.org/Lazarus/FPC_Libraries#External_-_statically_loading_a_dynamic_library
Logged
jixian.yang
Full Member
Posts: 173
Re: External dll/so
«
Reply #3 on:
August 03, 2011, 11:30:24 am »
Thanks.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
External dll/so
TinyPortal
© 2005-2018