[fpc-pascal] Basically on the right track?
Sven Barth
pascaldragon at googlemail.com
Fri Dec 28 20:04:13 CET 2012
On 28.12.2012 19:04, Patrick wrote:
> However I am delighted to see a lua package in there. I have more
> experience with lua. Make is running without errors but I expected to
> see a liblua.a archive file after and did not see it, there were more
> warnings. (I have them at the end of the email)
You won't see a liblua.a file, because Free Pascal does not use .a files
for such purposes. Free Pascal generates .o and .ppu files which can
then again be used when compiling a program. Also the lua package should
already be compiled if you installed the deb. Take a look at
/usr/lib/fpc/2.6.0/units/x86_64-linux/lua (or something similar).
Nevertheless you should be able to just add the "lua" unit to the uses
clause and it should work. You need the lua library installed of course.
> helloworld2.pas(99,1) Error: Error while linking
> helloworld2.pas(99,1) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> make: *** [helloworld2] Error
Could you try to compile the example using "-st" and then run the
generated ppas.sh script and report it's output here? I hope to get more
error information from the linker this way...
Regards,
Sven
More information about the fpc-pascal
mailing list