In this video, we build on the previous tutorial about shared libraries and show how to use static C libraries in Free Pascal and Lazarus.
We start with a simple example—a C math function compiled to a static .a file—and show how to use it from Pascal. Then we take it further with a real-world example using Raylib, a C game programming library, compiled as a static library and linked into a Free Pascal program.
📺 Watch the Shared Library video here:
👉
https://youtu.be/f29SMhakdtE
🔗 Chapters:
00:00 Start
00:30 Static Libraries – What Are They?
02:45 Using the Simple Math Lib in a Pascal Program
05:25 Raylib with Static Libraries
10:41 Static vs Shared Libraries
11:30 Final Thoughts
Links:
📌 Previous video:
📌 Raylib official site: https://www.raylib.com/
📌 Free Pascal: https://www.freepascal.org/
📌 Lazarus IDE: https://www.lazarus-ide.org/
📌 https://wiki.freepascal.org/Pascal_for_C_users
📌 https://github.com/GuvaCode/ray4laz/
📌 https://www.freepascal.org/docs-html/prog/progse22.html
📌 https://www.freepascal.org/docs-html/ref/refsu73.html
#FreePascal #Lazarus #Pascal #Raylib #StaticLibrary #CLibrary #ProgrammingTutorial