Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-09-01 Thread Anthony Walter via fpc-pascal
For those having problems downloading the solution, here is an alternate link: https://cache.getlazarus.org/chipmunktest.7z ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-09-01 Thread Michael Van Canneyt via fpc-pascal
On Thu, 1 Sep 2022, Anthony Walter via fpc-pascal wrote: For those having problems downloading the solution, here is an alternate link: https://cache.getlazarus.org/chipmunktest.7z Thank you, this works admirably. Michael. ___ fpc-pascal

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-09-01 Thread Jean SUZINEAU via fpc-pascal
Le 01/09/2022 à 07:50, Michael Van Canneyt via fpc-pascal a écrit : The file seems corrupt. I tried several programs, none managed to open it. Indeed more than corrupt. For me, file is just empty (size 0 byte) ___ fpc-pascal maillist -

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-31 Thread Michael Van Canneyt via fpc-pascal
On Wed, 31 Aug 2022, Anthony Walter via fpc-pascal wrote: I wanted everyone to know that after two attempts user Okoba on the Lazarus general forums was able to come up with a solution to fix this problem. I created a small demo that simulates objects dropped into an area with pegs rendered

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-31 Thread Anthony Walter via fpc-pascal
I wanted everyone to know that after two attempts user Okoba on the Lazarus general forums was able to come up with a solution to fix this problem. I created a small demo that simulates objects dropped into an area with pegs rendered on a TForm TCanvas. The solution and demo are inside the project

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-25 Thread Anthony Walter via fpc-pascal
Henry, Thanks for posting that one liner. In my utility, I use nm to dump the contents once but then use a Pascal desktop app to do the grepping and display the output within a TMemo. Your way is faster to implement. ___ fpc-pascal maillist -

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-25 Thread Henry Vermaak via fpc-pascal
On Thu, 25 Aug 2022 at 04:08, Anthony Walter via fpc-pascal wrote: > I've written a utility to extract mingw64 static library exports into a > searchable database. This allows me to search for possible missing functions > (see the screenshot below) > >

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-24 Thread Anthony Walter via fpc-pascal
I thought I should post an update. I've written a utility to extract mingw64 static library exports into a searchable database. This allows me to search for possible missing functions (see the screenshot below) https://cache.getlazarus.org/images/desktop/raylib-static.png Again though I have

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-23 Thread Anthony Walter via fpc-pascal
Tony, Thank you for that idea. Unfortunately, I initially tried using this approach several times in various ways without success. Each time I complete the missing functions in a manner as you've described, as the last missing function is provided I always receive an internal linking error

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-23 Thread Henry Vermaak via fpc-pascal
On Mon, 22 Aug 2022 at 22:42, Pierre Muller via fpc-pascal wrote: > Le 22/08/2022 à 18:18, Henry Vermaak via fpc-pascal a écrit : > > On Sun, 21 Aug 2022 at 18:34, Anthony Walter via fpc-pascal > > wrote: > >> I am also able to use mingw32 gcc to compile this same C source into a > >> static

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-23 Thread Tony Whyman via fpc-pascal
Once upon a time (late-1990s) I had some reasonable success (shareware) marketing a JPEG library for Delphi. This was a wrapper around the Independent JPEG Group's JPEG software which was written in 'C'. My JPEG library had thus to link to a 'C' library and both dynamic and static linking was

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Pierre Muller via fpc-pascal
Le 22/08/2022 à 18:18, Henry Vermaak via fpc-pascal a écrit : On Sun, 21 Aug 2022 at 18:34, Anthony Walter via fpc-pascal wrote: I am also able to use mingw32 gcc to compile this same C source into a static library for Windows using these two commands while inside the folder containing the

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Henry Vermaak via fpc-pascal
On Sun, 21 Aug 2022 at 18:34, Anthony Walter via fpc-pascal wrote: > I am also able to use mingw32 gcc to compile this same C source into a static > library for Windows using these two commands while inside the folder > containing the Chipmunk2D sources: > > x86_64-w64-mingw32-gcc-win32 -static

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Karoly Balogh via fpc-pascal
Hi, On Mon, 22 Aug 2022, Anthony Walter via fpc-pascal wrote: > I know in the past I had been able to compile / link libraries created > with MinGW GCC on Windows. Parts of the problem also include determining > which other static dependencies to link IN ADDITION to the order of the > linking.

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Anthony Walter via fpc-pascal
Marco, The missing symbols change depending on the order and which libraries are referenced. But I have tried all sorts of combinations and widdled them down, but I can never get it to compile. I think it might be a problem with the internal linker as Karoly suggested because sometimes I can

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Marco van de Voort via fpc-pascal
On 22-8-2022 15:01, Anthony Walter via fpc-pascal wrote: I never thought about the linker changes to FPC and am probably using the internal one. I know in the past I had been able to compile / link libraries created with MinGW GCC on Windows. Parts of the problem also include determining

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Anthony Walter via fpc-pascal
I never thought about the linker changes to FPC and am probably using the internal one. I know in the past I had been able to compile / link libraries created with MinGW GCC on Windows. Parts of the problem also include determining which other static dependencies to link IN ADDITION to the order

Re: [fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-22 Thread Karoly Balogh via fpc-pascal
Hi, On Sun, 21 Aug 2022, Anthony Walter via fpc-pascal wrote: > I will pay $100 to the first person that can solve my problem of linking > a compiled C static library to a Free Pascal program on Windows. I'm not an expert for FPC on Windows by any meanns, but I think I've ran into the problems

[fpc-pascal] I am offering a $100 reward for linking static libraries

2022-08-21 Thread Anthony Walter via fpc-pascal
I will pay $100 to the first person that can solve my problem of linking a compiled C static library to a Free Pascal program on Windows. Recently I have been building many C libraries with GCC on Linux and linking them to Free Pascal. These include building C libraries such as "libxmp" for