Hello,
I'm new to Lazarus and I'm trying to test just the basics.
I installed Lazarus on Linux (Ubuntu).
(1)Then I created a new project with a form, two button, two edits and one label, and I wrote just two functions:
function myadd(a, b : integer): integer;
begin
Result := a + b;
end;
function myminus(a, b : integer): integer;
begin
Result := a - b;
end;
Really a very simple test, it works fine.
(2)Then I created a new project "
LIBRARY" and wrote just those two functions "
myadd" and "
myminus".
The project was successfully compiled and the library was created "libmymath.so".
I copied the library to
/usr/lib folder and ran
ldconfig. (OK)
(3)Then I created a new project like the first one, with a form, button, etc.. and added the library "
libmymath.so"
This was really very simple, and it works fine and without any problem.
Now and after all 3 tests were successful, I installed Lazarus on a Raspberry (Raspian) (Lazarus 1.2.4 & FPC 2.6.4).
I did the same as before:
I was able to create a simple project as
(1). It works fine and without any problem.
I was able to create the library "
libmymath.so" as
(2). No problems.
But the 3. test:
I copied the library to
/usr/lib folder and ran
ldconfig: OK
I created a new project and added my library as in step
(3) and tried to compile the project.
The project was not built and I got the following error:
//usr/lib/libmymath.so: undefined reference to `TC_SYSTEM_ISLIBRARY'I have no idea what does "
TC_SYSTEM_ISLIBRARY" mean, and I'm unable to find any information about it.
Does anybody know what does this error mean?
I would really appreciate your help.
Thank you.