[fpc-pascal] Teaching Kids Using Free Pascal
Thomas Kurz
fpc.2021 at t-net.ruhr
Sat Aug 27 11:54:15 CEST 2022
I currently have only a few missing symbols, mostly math related:
Hint: (11030) Start of reading config file P:\Lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
Hint: (11031) End of reading config file P:\Lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.cfg
Warning: (11018) You are using the obsolete switch -St
Hint: (11030) Start of reading config file X:\Settings\Lazarus\fpcext.cfg
Hint: (11031) End of reading config file X:\Settings\Lazarus\fpcext.cfg
Free Pascal Compiler version 3.2.2 [2022/01/02] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Win64 for x64
(3104) Compiling project1.lpr
(9015) Linking Z:\project1.exe
Z:\project1.lpr(11,1) Error: Undefined symbol: sin
Z:\project1.lpr(11,1) Error: Undefined symbol: cos
Z:\project1.lpr(11,1) Error: Undefined symbol: __imp___acrt_iob_func
Z:\project1.lpr(11,1) Error: Undefined symbol: sqrt
Z:\project1.lpr(11,1) Error: Undefined symbol: pow
Z:\project1.lpr(11,1) Error: Undefined symbol: floor
Z:\project1.lpr(11,1) Fatal: (10026) There were 6 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: P:\Lazarus\fpc\3.2.2\bin\x86_64-win64\ppcx64.exe returned an error exitcode
The most tricky one seens to be "__imp___acrt_iob_func". A google search indicated that this one apparently is "hard-coded into the Go linker".
So my questions are:
- Has libchipmunk-win.a been compiled with Go? (I know that in your original message, you wrote about C, but I just want to be sure.)
- Have you tried using the Go linker instead of FPCs one?
But I will stay with it.
----- Original Message -----
From: Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
To: Anthony Walter via fpc-pascal <fpc-pascal at lists.freepascal.org>
Sent: Saturday, August 27, 2022, 11:14:55
Subject: [fpc-pascal] Teaching Kids Using Free Pascal
On Sat, 27 Aug 2022, Anthony Walter via fpc-pascal wrote:
> Some of you might not be aware, but I teach small groups of kids ages 8-16
> computer programming and digital electronics. When teaching programming I
> often use Free Pascal and Lazarus, and try to come up with exciting ideas.
> Over the past few weeks, I've taught my high school kids who have completed
> Algebra I programming using Linear Algebra. To help illustrate vectors,
> and matrices, I wrote a small program using Free Pascal to help them
> understand the sin(a) function.
> I thought I'd share the result:
> https://streamable.com/b5ojtt
A nice result, thank you for sharing this.
I talked to the chairman of the Free Pascal & Lazarus foundation and showed
your mail.
The subject of teaching kids how to program in Pascal and in particular using it for math
problems is something that is close to his heart (and to mine, as this is
exactly how I rolled into Free Pascal a quarter of a century ago).
He is also the editor of the Blaise Pascal magazine, and has published a
book by a dutch author that combines exactly these subjects:
https://www.blaisepascalmagazine.eu/product/books-computer-graphics-math-games-download-pdf/
I explained him your problem, and he agreed that the foundation should
assist in trying to solve this problem.
Therefore, for all:
If someone presents a solution that can be distributed with the compiler &
FPC which solves or considerably eases the problem (for instance a glue unit
that can be included to provide most of the missing symbols, some compiler
routines that aid...), the foundation will add another $200 to the bounty
offered by Anthony Walter, subject to his and our approval.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list